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

Commit 1f425905 authored by Adrian Roos's avatar Adrian Roos
Browse files

Never show transient navigation bar when empty

Prevents the status bar from showing in a transient way
when it's empty and hidden by the focused window.

Change-Id: Iaa191ed7b50cbc656a0a763b02b677d11759293e
Fixes: 30283262
parent 7742a315
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -6142,9 +6142,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                    return;
                }
                mPendingPanicGestureUptime = SystemClock.uptimeMillis();
                if (!isNavBarEmpty(mLastSystemUiFlags)) {
                    mNavigationBarController.showTransient();
                }
            }
        }
    };

    private void requestTransientBars(WindowState swipeTarget) {
@@ -6154,7 +6156,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                return;
            }
            boolean sb = mStatusBarController.checkShowTransientBarLw();
            boolean nb = mNavigationBarController.checkShowTransientBarLw();
            boolean nb = mNavigationBarController.checkShowTransientBarLw()
                    && !isNavBarEmpty(mLastSystemUiFlags);
            if (sb || nb) {
                // Don't show status bar when swiping on already visible navigation bar
                if (!nb && swipeTarget == mNavigationBar) {
@@ -7507,8 +7510,10 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            // we're no longer on the Keyguard and the screen is ready. We can now request the bars.
            mPendingPanicGestureUptime = 0;
            mStatusBarController.showTransient();
            if (!isNavBarEmpty(vis)) {
                mNavigationBarController.showTransient();
            }
        }

        final boolean denyTransientStatus = mStatusBarController.isTransientShowRequested()
                && !transientStatusBarAllowed && hideStatusBarSysui;