Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java +30 −4 Original line number Diff line number Diff line Loading @@ -278,15 +278,41 @@ public enum ScrimState { BUBBLE_EXPANDED { @Override public void prepare(ScrimState previousState) { mBehindAlpha = mClipQsScrim ? 1 : 0; mNotifAlpha = 0; mFrontAlpha = 0; mAnimationDuration = mKeyguardFadingAway ? mKeyguardFadingAwayDuration : StatusBar.FADE_KEYGUARD_DURATION; mAnimateChange = !mLaunchingAffordanceWithPreview; mFrontTint = Color.TRANSPARENT; mBehindTint = Color.TRANSPARENT; mBehindTint = Color.BLACK; mBubbleTint = Color.BLACK; mBlankScreen = false; mFrontAlpha = 0f; mBehindAlpha = mDefaultScrimAlpha; if (previousState == ScrimState.AOD) { // Set all scrims black, before they fade transparent. updateScrimColor(mScrimInFront, 1f /* alpha */, Color.BLACK /* tint */); updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK /* tint */); if (mScrimForBubble != null) { updateScrimColor(mScrimForBubble, 1f /* alpha */, Color.BLACK /* tint */); } // Scrims should still be black at the end of the transition. mFrontTint = Color.BLACK; mBehindTint = Color.BLACK; mBubbleTint = Color.BLACK; mBlankScreen = true; } if (mClipQsScrim) { updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK); } mAnimationDuration = ScrimController.ANIMATION_DURATION; mBlankScreen = false; } }; Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -621,7 +621,7 @@ public class ScrimControllerTest extends SysuiTestCase { assertScrimTinted(Map.of( mScrimInFront, false, mScrimBehind, false, mScrimBehind, true, mScrimForBubble, true )); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java +30 −4 Original line number Diff line number Diff line Loading @@ -278,15 +278,41 @@ public enum ScrimState { BUBBLE_EXPANDED { @Override public void prepare(ScrimState previousState) { mBehindAlpha = mClipQsScrim ? 1 : 0; mNotifAlpha = 0; mFrontAlpha = 0; mAnimationDuration = mKeyguardFadingAway ? mKeyguardFadingAwayDuration : StatusBar.FADE_KEYGUARD_DURATION; mAnimateChange = !mLaunchingAffordanceWithPreview; mFrontTint = Color.TRANSPARENT; mBehindTint = Color.TRANSPARENT; mBehindTint = Color.BLACK; mBubbleTint = Color.BLACK; mBlankScreen = false; mFrontAlpha = 0f; mBehindAlpha = mDefaultScrimAlpha; if (previousState == ScrimState.AOD) { // Set all scrims black, before they fade transparent. updateScrimColor(mScrimInFront, 1f /* alpha */, Color.BLACK /* tint */); updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK /* tint */); if (mScrimForBubble != null) { updateScrimColor(mScrimForBubble, 1f /* alpha */, Color.BLACK /* tint */); } // Scrims should still be black at the end of the transition. mFrontTint = Color.BLACK; mBehindTint = Color.BLACK; mBubbleTint = Color.BLACK; mBlankScreen = true; } if (mClipQsScrim) { updateScrimColor(mScrimBehind, 1f /* alpha */, Color.BLACK); } mAnimationDuration = ScrimController.ANIMATION_DURATION; mBlankScreen = false; } }; Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -621,7 +621,7 @@ public class ScrimControllerTest extends SysuiTestCase { assertScrimTinted(Map.of( mScrimInFront, false, mScrimBehind, false, mScrimBehind, true, mScrimForBubble, true )); Loading