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

Commit 08ffcf53 authored by John Spurlock's avatar John Spurlock
Browse files

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

The policy around leaving flags alone when the user
is interacting the status bar is not applicable when
the status bar is acting as the keyguard.

Bug:14913124
Change-Id: I96b4b707abce71f77ac2acb6f4086df661f5a25c
parent d05f67f9
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);