Merge "Default keyguard scrim should be 45% transparent" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b9b0eaff9c
@@ -92,7 +92,7 @@ public class ScrimController implements ViewTreeObserver.OnPreDrawListener, OnCo
|
||||
/**
|
||||
* Default alpha value for most scrims.
|
||||
*/
|
||||
public static final float GRADIENT_SCRIM_ALPHA = 0.70f;
|
||||
public static final float GRADIENT_SCRIM_ALPHA = 0.45f;
|
||||
/**
|
||||
* A scrim varies its opacity based on a busyness factor, for example
|
||||
* how many notifications are currently visible.
|
||||
|
||||
@@ -60,7 +60,7 @@ public enum ScrimState {
|
||||
@Override
|
||||
public float getBehindAlpha(float busynessFactor) {
|
||||
return MathUtils.map(0 /* start */, 1 /* stop */,
|
||||
ScrimController.GRADIENT_SCRIM_ALPHA, ScrimController.GRADIENT_SCRIM_ALPHA_BUSY,
|
||||
mScrimBehindAlphaKeyguard, ScrimController.GRADIENT_SCRIM_ALPHA_BUSY,
|
||||
busynessFactor);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user