am d2c00f55: Fix dismiss key preview bug introduced by I658a5b16cc

* commit 'd2c00f550d6b4f2452fe38cee7c1d2222a4b4b3d':
  Fix dismiss key preview bug introduced by I658a5b16cc
main
Tadashi G. Takaoka 2014-10-30 03:00:32 +00:00 committed by Android Git Automerger
commit 2f7dced0fc
1 changed files with 2 additions and 2 deletions

View File

@ -481,9 +481,9 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
@Override @Override
public void dismissKeyPreview(final Key key) { public void dismissKeyPreview(final Key key) {
final KeyPreviewChoreographer keyPreviewChoreographer = mKeyPreviewChoreographer;
if (isHardwareAccelerated()) { if (isHardwareAccelerated()) {
keyPreviewChoreographer.dismissKeyPreview(key, true /* withAnimation */); mKeyPreviewChoreographer.dismissKeyPreview(key, true /* withAnimation */);
return;
} }
// TODO: Implement preference option to control key preview method and duration. // TODO: Implement preference option to control key preview method and duration.
mTimerHandler.postDismissKeyPreview(key, mKeyPreviewDrawParams.getLingerTimeout()); mTimerHandler.postDismissKeyPreview(key, mKeyPreviewDrawParams.getLingerTimeout());