Fix dismiss key preview bug introduced by I658a5b16cc
Change-Id: I5248374dfe0504f6e64cc5d994e275d80364ec9d
This commit is contained in:
parent
c96bb3e9a7
commit
d2c00f550d
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue