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

Commit 78634820 authored by Robin Lee's avatar Robin Lee
Browse files

Fix missing "1.0f - " in factored-out helper

Before submitting, `zoomOutAsScale` was extracted out from two places.
Unfortunately, I also broke the function in that extraction so that
it scaled up from 0.0f instead of down from 1.0f. Very bad.

Followup to 8af5e1a2

Test: atest AppZoomOutControllerTest
Test: atest NotificationShadeDepthControllerTest
Test: but also manual inspection this time
Bug: 391463550
Flag: com.android.systemui.spatial_model_pushback_in_shader
Change-Id: I600ff68bf0ed9e893878170748cde3596bc62679
parent 7870811c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -334,7 +334,7 @@ constructor(
            else scrimsVisible && !areBlursDisabledForAppLaunch

    private fun zoomOutAsScale(zoomOutProgress: Float): Float =
        if (spatialModelPushbackInShader()) zoomOutProgress * PUSHBACK_SCALE_FOR_APP
        if (spatialModelPushbackInShader()) 1.0f - zoomOutProgress * PUSHBACK_SCALE_FOR_APP
        else 1.0f

    /** Callback that updates the window blur value and is called only once per frame. */