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

Commit d37e84e4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] Fix remote input case when notifs aren't overflowing" into main

parents 62210b09 62bdb554
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -375,9 +375,13 @@ fun SceneScope.NotificationScrollingStack(
    LaunchedEffect(shadeScrollState) { viewModel.setScrollState(shadeScrollState) }

    // if contentHeight drops below minimum visible scrim height while scrim is
    // expanded, reset scrim offset.
    LaunchedEffect(stackHeight, scrimOffset) {
        snapshotFlow { stackHeight.intValue < minVisibleScrimHeight() && scrimOffset.value < 0f }
    // expanded and IME is not showing, reset scrim offset.
    LaunchedEffect(stackHeight, scrimOffset, imeTop) {
        snapshotFlow {
                stackHeight.intValue < minVisibleScrimHeight() &&
                    scrimOffset.value < 0f &&
                    imeTop.floatValue <= 0f
            }
            .collect { shouldCollapse -> if (shouldCollapse) scrimOffset.animateTo(0f, tween()) }
    }