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

Commit edfc6f98 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Fix window move animation duration scale"

parents 1cd1af4a 08f75cfc
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);