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

Commit 7aa5d8b1 authored by Shawn Lee's avatar Shawn Lee Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] Account for navbarheight in minVisibleScrimHeight" into main

parents 4d15562a 410dfc4f
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) {