diff options
| author | 2023-08-02 22:13:59 +0000 | |
|---|---|---|
| committer | 2023-08-02 22:13:59 +0000 | |
| commit | b15a00ed9cb2643adb5a235a1ea5bdf90dac24b4 (patch) | |
| tree | d5d79747c493b460574a69274efebe1f69a7e31c | |
| parent | fce1e6450f0899aa71480eb791068df4ad786f7e (diff) | |
| parent | a6a5290224b5e3256b7f334b26644c17d886c13c (diff) | |
Merge "[wm]  Make dim animation duration respect transition animation scale" into main
| -rw-r--r-- | services/core/java/com/android/server/wm/Dimmer.java | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/Dimmer.java b/services/core/java/com/android/server/wm/Dimmer.java index d7667d8ce7a8..4f3ab8bbbe0a 100644 --- a/services/core/java/com/android/server/wm/Dimmer.java +++ b/services/core/java/com/android/server/wm/Dimmer.java @@ -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();      }  |