mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Use "Key popup dismiss delay" to control key preview zoom out animation"
This commit is contained in:
commit
96aee22e7b
@ -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 New Issue
Block a user