Merge "Do not blur shade while fading away" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
60be958cfc
@@ -250,7 +250,8 @@ class NotificationShadeDepthController @Inject constructor(
|
|||||||
private fun updateShadeBlur() {
|
private fun updateShadeBlur() {
|
||||||
var newBlur = 0
|
var newBlur = 0
|
||||||
val state = statusBarStateController.state
|
val state = statusBarStateController.state
|
||||||
if (state == StatusBarState.SHADE || state == StatusBarState.SHADE_LOCKED) {
|
if ((state == StatusBarState.SHADE || state == StatusBarState.SHADE_LOCKED) &&
|
||||||
|
!keyguardStateController.isKeyguardFadingAway) {
|
||||||
newBlur = blurUtils.blurRadiusOfRatio(shadeExpansion)
|
newBlur = blurUtils.blurRadiusOfRatio(shadeExpansion)
|
||||||
}
|
}
|
||||||
shadeSpring.animateTo(newBlur)
|
shadeSpring.animateTo(newBlur)
|
||||||
|
|||||||
Reference in New Issue
Block a user