summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2022-09-13 17:27:47 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-09-13 17:27:47 +0000
commit103e87a13195d367476b9cd57fe39f276498ac14 (patch)
treec061499d5b393535b4bd750cf09b65c2b5c8dd9c
parent4a808b11f59de7f1f2a2444c3be90429c8633b03 (diff)
parent642fe5e4b37d4f9ff81e4011539eb79e9987c211 (diff)
downloadlibpalmrejection-103e87a13195d367476b9cd57fe39f276498ac14.tar.gz
Correct condition for early detection am: bc17b161df am: 642fe5e4b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/libpalmrejection/+/19914651 Change-Id: Id382e1f08a0518c32c904fe587d3a04035670415 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc
index 6b7e60b..6b91d1b 100644
--- a/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc
+++ b/ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc
@@ -195,7 +195,7 @@ void NeuralStylusPalmDetectionFilter::Filter(
PalmFilterStroke& stroke = stroke_it->second;
if (end_of_stroke) {
// This is a stroke that hasn't had a decision yet, so we force decide.
- if (stroke.samples().size() < config.max_sample_count) {
+ if (stroke.samples_seen() < config.max_sample_count) {
slots_to_decide.insert(slot);
}