Fix dismiss key preview bug introduced by I658a5b16cc

Change-Id: I5248374dfe0504f6e64cc5d994e275d80364ec9d
main
Tadashi G. Takaoka 2014-10-30 11:43:53 +09:00
parent c96bb3e9a7
commit d2c00f550d
1 changed files with 2 additions and 2 deletions

View File

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