Fix dismiss key preview bug introduced by I658a5b16cc
Change-Id: I5248374dfe0504f6e64cc5d994e275d80364ec9dmain
parent
c96bb3e9a7
commit
d2c00f550d
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue