From b28139f51b2f2e6dfd60e968024006f53590a41c Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Thu, 23 Aug 2012 15:54:00 +0900 Subject: [PATCH] Use PointerTrackerQueue.size instead of MotionEvent.getPointerCount Change-Id: I089e905def0b70bd38fd54ab2d84689b904bb320 --- .../src/com/android/inputmethod/keyboard/PointerTracker.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/src/com/android/inputmethod/keyboard/PointerTracker.java b/java/src/com/android/inputmethod/keyboard/PointerTracker.java index ac1a28b05..751dd6061 100644 --- a/java/src/com/android/inputmethod/keyboard/PointerTracker.java +++ b/java/src/com/android/inputmethod/keyboard/PointerTracker.java @@ -819,8 +819,9 @@ public class PointerTracker implements PointerTrackerQueue.Element { // touch panels when there are close multiple touches. // Caveat: When in chording input mode with a modifier key, we don't use // this hack. - if (me != null && me.getPointerCount() > 1 - && !sPointerTrackerQueue.hasModifierKeyOlderThan(this)) { + final PointerTrackerQueue queue = sPointerTrackerQueue; + if (queue != null && queue.size() > 1 + && !queue.hasModifierKeyOlderThan(this)) { onUpEventInternal(); } if (!mIsPossibleGesture) {