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

Commit baf77ba2 authored by Josh Tsuji's avatar Josh Tsuji
Browse files

Hide the nav handle when going to AOD rather then having it stay there, change...

Hide the nav handle when going to AOD rather then having it stay there, change color, then disappear.

This has annoyed me for a very long time and is now very easy to fix.

Bug: 278086361
Flag: com.android.systemui.keyguard_wm_state_refactor
Test: go to/from AOD from GONE/LS, ensuring the handle re-appears on LS/GONE
Change-Id: I1d11080fb73f1f21f566ce4c6180e330a93dd767
parent 4979bc95
Loading
Loading
Loading
Loading
+9 −1
Original line number Original line Diff line number Diff line
@@ -121,7 +121,15 @@ constructor(
                    var flags = StatusBarManager.DISABLE_NONE
                    var flags = StatusBarManager.DISABLE_NONE


                    if (hideHomeAndRecentsForBouncer || (isKeyguardShowing && !isOccluded)) {
                    if (hideHomeAndRecentsForBouncer || (isKeyguardShowing && !isOccluded)) {
                        if (!isShowHomeOverLockscreen || !isGesturalMode) {
                        // Hide the home button/nav handle if we're on keyguard and either:
                        // - Going to AOD, in which case the handle should animate away.
                        // - Nav handle is configured not to show on lockscreen.
                        // - There is no nav handle.
                        if (
                            startedState == KeyguardState.AOD ||
                                !isShowHomeOverLockscreen ||
                                !isGesturalMode
                        ) {
                            flags = flags or StatusBarManager.DISABLE_HOME
                            flags = flags or StatusBarManager.DISABLE_HOME
                        }
                        }
                        flags = flags or StatusBarManager.DISABLE_RECENT
                        flags = flags or StatusBarManager.DISABLE_RECENT