Fix bug in KeyPreviewChoreographer.dismissKeyPreview

Bug: 12979147
Change-Id: Ibc60b4565badaebe760194f27984b02f9f966996
This commit is contained in:
Tadashi G. Takaoka 2014-02-12 14:48:09 +09:00
parent 2089afd257
commit 7e9b0b42bf

View file

@ -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();
}