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

Commit b15a00ed authored by Vishnu Nair's avatar Vishnu Nair Committed by Android (Google) Code Review
Browse files

Merge "[wm] Make dim animation duration respect transition animation scale" into main

parents fce1e645 a6a52902
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -349,7 +349,8 @@ class Dimmer {

        // Otherwise use the same duration as the animation on the WindowContainer
        AnimationAdapter animationAdapter = container.mSurfaceAnimator.getAnimation();
        return animationAdapter == null ? DEFAULT_DIM_ANIM_DURATION
        final float durationScale = container.mWmService.getTransitionAnimationScaleLocked();
        return animationAdapter == null ? (long) (DEFAULT_DIM_ANIM_DURATION * durationScale)
                : animationAdapter.getDurationHint();
    }