am d2c00f55: Fix dismiss key preview bug introduced by I658a5b16cc
* commit 'd2c00f550d6b4f2452fe38cee7c1d2222a4b4b3d': Fix dismiss key preview bug introduced by I658a5b16ccmain
commit
2f7dced0fc
|
@ -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 New Issue