Merge "Lighten bubble scrim" into rvc-dev am: e3f751c42c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11924521 Change-Id: Ibd0fab398cdce9c0e42c9ec7bcbc91fe829699f6
This commit is contained in:
@@ -113,6 +113,12 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
|||||||
* Scrim opacity when the phone is about to wake-up.
|
* Scrim opacity when the phone is about to wake-up.
|
||||||
*/
|
*/
|
||||||
public static final float WAKE_SENSOR_SCRIM_ALPHA = 0.6f;
|
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.
|
* The default scrim under the shade and dialogs.
|
||||||
* This should not be lower than 0.54, otherwise we won't pass GAR.
|
* This should not be lower than 0.54, otherwise we won't pass GAR.
|
||||||
|
|||||||
@@ -235,7 +235,7 @@ public enum ScrimState {
|
|||||||
|
|
||||||
mFrontAlpha = 0f;
|
mFrontAlpha = 0f;
|
||||||
mBehindAlpha = mDefaultScrimAlpha;
|
mBehindAlpha = mDefaultScrimAlpha;
|
||||||
mBubbleAlpha = mDefaultScrimAlpha;
|
mBubbleAlpha = ScrimController.BUBBLE_SCRIM_ALPHA;
|
||||||
|
|
||||||
mAnimationDuration = ScrimController.ANIMATION_DURATION;
|
mAnimationDuration = ScrimController.ANIMATION_DURATION;
|
||||||
mBlankScreen = false;
|
mBlankScreen = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user