From 5e3b93542d2096b0537390996c04a23013e325a5 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 24 Aug 2012 17:48:23 +0900 Subject: [PATCH] Fix the bug that the first gesture preview trail isn't drawn Change-Id: Ib3acd7c0b401e6d95b39552b48d0d974793eb438 --- .../inputmethod/keyboard/internal/GesturePreviewTrail.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/keyboard/internal/GesturePreviewTrail.java b/java/src/com/android/inputmethod/keyboard/internal/GesturePreviewTrail.java index edc20998f..747627b7d 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/GesturePreviewTrail.java +++ b/java/src/com/android/inputmethod/keyboard/internal/GesturePreviewTrail.java @@ -30,7 +30,7 @@ class GesturePreviewTrail { private final ResizableIntArray mXCoordinates = new ResizableIntArray(DEFAULT_CAPACITY); private final ResizableIntArray mYCoordinates = new ResizableIntArray(DEFAULT_CAPACITY); private final ResizableIntArray mEventTimes = new ResizableIntArray(DEFAULT_CAPACITY); - private int mCurrentStrokeId; + private int mCurrentStrokeId = -1; private long mCurrentDownTime; // Use this value as imaginary zero because x-coordinates may be zero.