Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d039d514 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove flicker when unlocking + turning off screen" into udc-qpr-dev am: 75748b6b

parents c51ba1aa 75748b6b
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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
+0 −2
Original line number Diff line number Diff line
@@ -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)
    }