Fix window move animation duration scale

Test: go/wm-smoke
Test: Adjust duration scale, observe windows are moving slower

Change-Id: Iac08be3341c5f80b2723bee23f974ebebdcd07fa
Fixes: 71683150
This commit is contained in:
Jorim Jaggi
2018-01-08 14:38:53 +01:00
parent ab4c1eaa41
commit 08f75cfc24

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);