Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 08f75cfc authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix window move animation duration scale

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

Change-Id: Iac08be3341c5f80b2723bee23f974ebebdcd07fa
Fixes: 71683150
parent ab4c1eaa
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);