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

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

Merge "If status bar is the keyguard, allow clearing vis flags."

parents b7abf310 08ffcf53
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5506,12 +5506,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        // prevent status bar interaction from clearing certain flags
        boolean statusBarHasFocus = win.getAttrs().type == TYPE_STATUS_BAR;
        if (statusBarHasFocus) {
        if (statusBarHasFocus && !isStatusBarKeyguard()) {
            int flags = View.SYSTEM_UI_FLAG_FULLSCREEN
                    | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
                    | View.SYSTEM_UI_FLAG_IMMERSIVE
                    | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
            if (!isStatusBarKeyguard() || mHideLockScreen) {
            if (mHideLockScreen) {
                flags |= View.STATUS_BAR_TRANSLUCENT | View.NAVIGATION_BAR_TRANSLUCENT;
            }
            vis = (vis & ~flags) | (oldVis & flags);