Use "Key popup dismiss delay" to control key preview zoom out animation
Bug: 12809303 Change-Id: I2db0362a2f8c512145f1cf9326f06e5f922987b8
This commit is contained in:
parent
b06e455797
commit
5be8a59a5a
1 changed files with 2 additions and 1 deletions
|
@ -705,7 +705,8 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
|
|||
final AnimatorSet zoomOutAnimation = new AnimatorSet();
|
||||
zoomOutAnimation.play(scaleXAnimation).with(scaleYAnimation);
|
||||
// TODO: Implement preference option to control key preview animation duration.
|
||||
zoomOutAnimation.setDuration(mKeyPreviewZoomOutDuration);
|
||||
final int zoomOutDuration = Math.min(mKeyPreviewZoomOutDuration, mKeyPreviewLingerTimeout);
|
||||
zoomOutAnimation.setDuration(zoomOutDuration);
|
||||
zoomOutAnimation.setInterpolator(ACCELERATE_INTERPOLATOR);
|
||||
zoomOutAnimation.addListener(new AnimatorListenerAdapter() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue