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

Commit 0e1a96a1 authored by Adrian Roos's avatar Adrian Roos Committed by Android (Google) Code Review
Browse files

Merge "Protect WindowManager's PRIVATE_FLAG_KEYGUARD" into master-lockscreen-dev

parents 1fcb5400 3850211a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1362,6 +1362,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                }
                break;
        }

        if (attrs.type != TYPE_STATUS_BAR) {
            // The status bar is the only window allowed to exhibit keyguard behavior.
            attrs.privateFlags &= ~WindowManager.LayoutParams.PRIVATE_FLAG_KEYGUARD;
        }
    }
    
    void readLidState() {