From 7e9b0b42bfd5c51f4bc236a73df3f14cf583c989 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 12 Feb 2014 14:48:09 +0900 Subject: [PATCH] Fix bug in KeyPreviewChoreographer.dismissKeyPreview Bug: 12979147 Change-Id: Ibc60b4565badaebe760194f27984b02f9f966996 --- .../inputmethod/keyboard/internal/KeyPreviewChoreographer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/keyboard/internal/KeyPreviewChoreographer.java b/java/src/com/android/inputmethod/keyboard/internal/KeyPreviewChoreographer.java index ff197ba27..625d1f0a4 100644 --- a/java/src/com/android/inputmethod/keyboard/internal/KeyPreviewChoreographer.java +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyPreviewChoreographer.java @@ -101,10 +101,11 @@ public final class KeyPreviewChoreographer { if (tag instanceof KeyPreviewAnimations) { final KeyPreviewAnimations animation = (KeyPreviewAnimations)tag; animation.startDismiss(); + return; } - return; } // Dismiss preview without animation. + mShowingKeyPreviewTextViews.remove(key); if (tag instanceof Animator) { ((Animator)tag).cancel(); }