diff options
Diffstat (limited to 'com/android/systemui/statusbar/phone/ScrimState.java')
-rw-r--r-- | com/android/systemui/statusbar/phone/ScrimState.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/com/android/systemui/statusbar/phone/ScrimState.java b/com/android/systemui/statusbar/phone/ScrimState.java index f4b6c38c..bbdaa999 100644 --- a/com/android/systemui/statusbar/phone/ScrimState.java +++ b/com/android/systemui/statusbar/phone/ScrimState.java @@ -111,9 +111,10 @@ public enum ScrimState { mCurrentInFrontAlpha = alwaysOnEnabled ? mAodFrontScrimAlpha : 1f; mCurrentInFrontTint = Color.BLACK; mCurrentBehindTint = Color.BLACK; - // DisplayPowerManager will blank the screen for us, we just need - // to set our state. - mAnimateChange = !mDisplayRequiresBlanking; + mAnimationDuration = ScrimController.ANIMATION_DURATION_LONG; + // DisplayPowerManager may blank the screen for us, + // in this case we just need to set our state. + mAnimateChange = mDozeParameters.shouldControlScreenOff(); } @Override |