Merge "Remove flicker when unlocking + turning off screen" into udc-qpr-dev

This commit is contained in:
TreeHugger Robot
2023-06-05 18:19:20 +00:00
committed by Android (Google) Code Review
2 changed files with 1 additions and 6 deletions

View File

@@ -906,10 +906,7 @@ class KeyguardUnlockAnimationController @Inject constructor(
}
fun setWallpaperAppearAmount(amount: Float) {
val animationAlpha = when {
!powerManager.isInteractive -> 0f
else -> amount
}
val animationAlpha = amount
wallpaperTargets?.forEach { wallpaper ->
// SyncRtSurfaceTransactionApplier cannot apply transaction when the target view is

View File

@@ -385,8 +385,6 @@ class KeyguardUnlockAnimationControllerTest : SysuiTestCase() {
// We expect that we've set the surface behind to alpha = 0f since we're not interactive.
assertEquals(0f, params.alpha)
assertTrue(params.matrix.isIdentity)
assertEquals("Wallpaper surface was expected to have opacity 0",
0f, captorWp.getLastValue().alpha)
verifyNoMoreInteractions(surfaceTransactionApplier)
}