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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user