aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2014-10-30 03:00:32 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-30 03:00:32 +0000
commit2f7dced0fcc1462d168f9d3bd8ab651e2da70789 (patch)
tree656717100c93790344cf3ca8bc908df96ee147e9 /java/src
parent92f944b22b643619de95f0c15384236be0c6eaa7 (diff)
parentd2c00f550d6b4f2452fe38cee7c1d2222a4b4b3d (diff)
downloadlatinime-2f7dced0fcc1462d168f9d3bd8ab651e2da70789.tar.gz
latinime-2f7dced0fcc1462d168f9d3bd8ab651e2da70789.tar.xz
latinime-2f7dced0fcc1462d168f9d3bd8ab651e2da70789.zip
am d2c00f55: Fix dismiss key preview bug introduced by I658a5b16cc
* commit 'd2c00f550d6b4f2452fe38cee7c1d2222a4b4b3d': Fix dismiss key preview bug introduced by I658a5b16cc
Diffstat (limited to 'java/src')
-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());