diff options
author | Siarhei Vishniakou <svv@google.com> | 2022-09-13 16:57:05 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-09-13 16:57:05 +0000 |
commit | 642fe5e4b37d4f9ff81e4011539eb79e9987c211 (patch) | |
tree | c061499d5b393535b4bd750cf09b65c2b5c8dd9c | |
parent | 67e0b0a65a268fbf58bb6df694aa6f7643014b5f (diff) | |
parent | bc17b161dfa8d983a816188cc9f9fa827de55abf (diff) | |
download | libpalmrejection-642fe5e4b37d4f9ff81e4011539eb79e9987c211.tar.gz |
Correct condition for early detection am: bc17b161df
Original change: https://googleplex-android-review.googlesource.com/c/platform/external/libpalmrejection/+/19914651
Change-Id: I97f334ea65d18ce59e21cd2d76bed58bd0ae5ea3
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.cc | 2 |
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); } |