Skip to content
Snippets Groups Projects
Commit b28139f5 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Use PointerTrackerQueue.size instead of MotionEvent.getPointerCount

Change-Id: I089e905def0b70bd38fd54ab2d84689b904bb320
parent 694ccb5b
No related branches found
No related tags found
No related merge requests found
...@@ -819,8 +819,9 @@ public class PointerTracker implements PointerTrackerQueue.Element { ...@@ -819,8 +819,9 @@ public class PointerTracker implements PointerTrackerQueue.Element {
// touch panels when there are close multiple touches. // touch panels when there are close multiple touches.
// Caveat: When in chording input mode with a modifier key, we don't use // Caveat: When in chording input mode with a modifier key, we don't use
// this hack. // this hack.
if (me != null && me.getPointerCount() > 1 final PointerTrackerQueue queue = sPointerTrackerQueue;
&& !sPointerTrackerQueue.hasModifierKeyOlderThan(this)) { if (queue != null && queue.size() > 1
&& !queue.hasModifierKeyOlderThan(this)) {
onUpEventInternal(); onUpEventInternal();
} }
if (!mIsPossibleGesture) { if (!mIsPossibleGesture) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment