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

Commit cb1b3fdb authored by Caitlin Shkuratov's avatar Caitlin Shkuratov Committed by Android (Google) Code Review
Browse files

Merge "[SB] Only hide the status bar if the shade is at least 40% showing." into main

parents 2889a983 4d209afb
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -288,11 +288,11 @@ constructor(
        get() = statusBarPopupChips.shownPopupChips

    private val isShadeExpandedEnough =
        // Keep the status bar visible while the shade is just starting to open, but otherwise
        // hide it so that the status bar doesn't draw while it can't be seen.
        // See b/394257529#comment24.
        // Keep the status bar visible while the shade is just starting to open or while a HUN is
        // being dragged on (b/412820391), but otherwise hide it so that the status bar doesn't draw
        // while it can't be seen. See b/394257529#comment24.
        shadeInteractor.anyExpansion
            .map { it >= 0.2 }
            .map { it >= 0.4 }
            .distinctUntilChanged()
            .logDiffsForTable(
                tableLogBuffer = tableLogger,