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

Commit 8929bae7 authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "Hideybar gesture clears flags if SYSTEM_UI_FLAG_FULLSCREEN"

parents 7bb9471e 73bad0ec
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -4947,7 +4947,16 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        if (mHideybars == HIDEYBARS_SHOWING) {
            if (!hideybarsAllowed) {
                mHideybars = HIDEYBARS_NONE;
                if ((tmpVisibility & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0) {
                    // hideybars for View.SYSTEM_UI_FLAG_FULLSCREEN: clear the clearable flags
                    int newVal = mResettingSystemUiFlags | View.SYSTEM_UI_CLEARABLE_FLAGS;
                    if (newVal != mResettingSystemUiFlags) {
                        mResettingSystemUiFlags = newVal;
                        mWindowManagerFuncs.reevaluateStatusBarVisibility();
                    }
                }
            } else {
                // hideybars for WM.LP.FLAG_FULLSCREEN: show transparent status bar
                tmpVisibility |= View.STATUS_BAR_OVERLAY;
                if ((mLastSystemUiFlags & View.STATUS_BAR_OVERLAY) == 0) {
                    mStatusBar.showLw(true);