From 9c5d165e9c5797f16d3b07b043a5525353ad0d4f Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 14 Sep 2012 10:23:59 +0900 Subject: [PATCH] Don't show gesture preview trail while detecting gesture input Bug: 7166222 Change-Id: Iecc8403a4eca305323ed8c8e17266d23172d84d9 --- .../inputmethod/keyboard/PointerTracker.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/java/src/com/android/inputmethod/keyboard/PointerTracker.java b/java/src/com/android/inputmethod/keyboard/PointerTracker.java index 2417d6e96..a6439c46a 100644 --- a/java/src/com/android/inputmethod/keyboard/PointerTracker.java +++ b/java/src/com/android/inputmethod/keyboard/PointerTracker.java @@ -545,13 +545,14 @@ public class PointerTracker implements PointerTrackerQueue.Element { } private void startBatchInput() { - if (!sInGesture && mGestureStrokeWithPreviewTrail.isStartOfAGesture()) { - if (DEBUG_LISTENER) { - Log.d(TAG, "onStartBatchInput"); - } - sInGesture = true; - mListener.onStartBatchInput(); + if (sInGesture || !mGestureStrokeWithPreviewTrail.isStartOfAGesture()) { + return; } + if (DEBUG_LISTENER) { + Log.d(TAG, "onStartBatchInput"); + } + sInGesture = true; + mListener.onStartBatchInput(); final boolean isOldestTracker = sPointerTrackerQueue.getOldestElement() == this; mDrawingProxy.showGesturePreviewTrail(this, isOldestTracker); }