diff options
| author | 2020-06-19 16:53:05 +0000 | |
|---|---|---|
| committer | 2020-06-19 16:53:05 +0000 | |
| commit | e3f751c42c60bb92a7f03540ccb9287646cee1e7 (patch) | |
| tree | 5576acb850c780e23d46d5f09e3d897f7ffef6b4 | |
| parent | d6b99a586a145f9a00fcb19d8f3949fd9034eff8 (diff) | |
| parent | 86f638060e4fe433d351413f244f1a74a5154be9 (diff) | |
Merge "Lighten bubble scrim" into rvc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java | 6 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java index 00eab952c504..60fc17d9474a 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java @@ -113,6 +113,12 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo * Scrim opacity when the phone is about to wake-up. */ public static final float WAKE_SENSOR_SCRIM_ALPHA = 0.6f; + + /** + * Scrim opacity when bubbles are expanded. + */ + public static final float BUBBLE_SCRIM_ALPHA = 0.6f; + /** * The default scrim under the shade and dialogs. * This should not be lower than 0.54, otherwise we won't pass GAR. diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java index ade642c5ea9a..2db36f4a62f8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimState.java @@ -235,7 +235,7 @@ public enum ScrimState { mFrontAlpha = 0f; mBehindAlpha = mDefaultScrimAlpha; - mBubbleAlpha = mDefaultScrimAlpha; + mBubbleAlpha = ScrimController.BUBBLE_SCRIM_ALPHA; mAnimationDuration = ScrimController.ANIMATION_DURATION; mBlankScreen = false; |