am 96aee22e: Merge "Use "Key popup dismiss delay" to control key preview zoom out animation"
* commit '96aee22e7b63d5a0392615a7bc8f7f90e4a7ea19': Use "Key popup dismiss delay" to control key preview zoom out animationmain
commit
e146944466
|
@ -705,7 +705,8 @@ public final class MainKeyboardView extends KeyboardView implements PointerTrack
|
||||||
final AnimatorSet zoomOutAnimation = new AnimatorSet();
|
final AnimatorSet zoomOutAnimation = new AnimatorSet();
|
||||||
zoomOutAnimation.play(scaleXAnimation).with(scaleYAnimation);
|
zoomOutAnimation.play(scaleXAnimation).with(scaleYAnimation);
|
||||||
// TODO: Implement preference option to control key preview animation duration.
|
// 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.setInterpolator(ACCELERATE_INTERPOLATOR);
|
||||||
zoomOutAnimation.addListener(new AnimatorListenerAdapter() {
|
zoomOutAnimation.addListener(new AnimatorListenerAdapter() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue