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

Commit 410dfc4f authored by 0's avatar 0
Browse files

[flexiglass] Account for navbarheight in minVisibleScrimHeight

Footer is only visible when there is enough height in the scrim excluding the nav bar to display the stack - minVisibleScrimHeight should reflect that.

Bug: 359956998
Test: manually verified that scrim can now expand when there are just enough notifications that the footer is not visible when at rest
Flag: com.android.systemui.scene_container
Change-Id: If99f395d50e68b867b7ac2152cc0eedd40f2efde
parent 42864cfb
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -321,7 +321,9 @@ fun SceneScope.NotificationScrollingStack(
    val minScrimOffset: () -> Float = { minScrimTop - maxScrimTop() }

    // The height of the scrim visible on screen when it is in its resting (collapsed) state.
    val minVisibleScrimHeight: () -> Float = { screenHeight - maxScrimTop() }
    val minVisibleScrimHeight: () -> Float = {
        screenHeight - maxScrimTop() - with(density) { navBarHeight.toPx() }
    }

    // we are not scrolled to the top unless the scrim is at its maximum offset.
    LaunchedEffect(viewModel, scrimOffset) {