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

Commit d1c19ee1 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Don't elevate during overscroll

This CL disables element elevation when a transition is overscrolling.
This is necessary because some overscroll effects are applied in the
drawing phase, so elements have to be drawn in their original scene
durign overscroll.

Bug: 409305420
Test: Manual, see b/409305420#comment1
Flag: com.android.systemui.scene_container
Change-Id: I731ddfffc262465718220e8ac7489972d1cb9c48
parent 16e9ba37
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -236,7 +236,10 @@ private fun Modifier.maybeElevateInContent(
                    content.key,
                    layoutImpl.elements.getValue(key),
                    state,
                )
                ) &&
                // Always draw in the original content when overscrolling.
                state.progress > 0f &&
                state.progress < 1f
        },
    )
}