Merge "Fix window move animation duration scale"

This commit is contained in:
Jorim Jaggi
2018-01-08 16:33:08 +00:00
committed by Android (Google) Code Review

View File

@@ -4580,7 +4580,8 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
private MoveAnimationSpec(int fromX, int fromY, int toX, int toY) {
final Animation anim = AnimationUtils.loadAnimation(mContext,
com.android.internal.R.anim.window_move_from_decor);
mDuration = anim.computeDurationHint();
mDuration = (long)
(anim.computeDurationHint() * mService.getWindowAnimationScaleLocked());
mInterpolator = anim.getInterpolator();
mFrom.set(fromX, fromY);
mTo.set(toX, toY);