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

Commit 3155cefe authored by Fabian Kozynski's avatar Fabian Kozynski Committed by Android (Google) Code Review
Browse files

Merge "Change the trigger for scrolling to first page" into main

parents 8256af94 3f0062bd
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -88,7 +88,11 @@ constructor(
        LaunchedEffect(listening, pagerState) {
            snapshotFlow { listening() }
                .collect {
                    if (!listening()) {
                    // Whenever we go from not listening to listening, we should be in the first
                    // page. If we did this when going from listening to not listening, opening
                    // edit mode in second page will cause it to go to first page during the
                    // transition.
                    if (listening()) {
                        pagerState.scrollToPage(0)
                    }
                }