aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-10-30 11:43:53 +0900
committerTadashi G. Takaoka <takaoka@google.com>2014-10-30 11:43:53 +0900
commitd2c00f550d6b4f2452fe38cee7c1d2222a4b4b3d (patch)
treea9bf8b5231e6f2e6f8979ff41c39482ad9da6165 /java/src/com/android
parentc96bb3e9a7b542cdc05d8bee078d8ed516212c6d (diff)
downloadlatinime-d2c00f550d6b4f2452fe38cee7c1d2222a4b4b3d.tar.gz
latinime-d2c00f550d6b4f2452fe38cee7c1d2222a4b4b3d.tar.xz
latinime-d2c00f550d6b4f2452fe38cee7c1d2222a4b4b3d.zip
Fix dismiss key preview bug introduced by I658a5b16cc
Change-Id: I5248374dfe0504f6e64cc5d994e275d80364ec9d
Diffstat (limited to 'java/src/com/android')
-rw-r--r--java/src/com/android/inputmethod/keyboard/MainKeyboardView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java b/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java
index 001510d2d..c6c731570 100644
--- a/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java
+++ b/java/src/com/android/inputmethod/keyboard/MainKeyboardView.java
@@ -481,9 +481,9 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
@Override
public void dismissKeyPreview(final Key key) {
- final KeyPreviewChoreographer keyPreviewChoreographer = mKeyPreviewChoreographer;
if (isHardwareAccelerated()) {
- keyPreviewChoreographer.dismissKeyPreview(key, true /* withAnimation */);
+ mKeyPreviewChoreographer.dismissKeyPreview(key, true /* withAnimation */);
+ return;
}
// TODO: Implement preference option to control key preview method and duration.
mTimerHandler.postDismissKeyPreview(key, mKeyPreviewDrawParams.getLingerTimeout());