Merge "Dismiss insecure keyguards if FLAG_SHOW_WHEN_LOCKED" into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
41ec040005
@@ -4054,10 +4054,14 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
// Remove any previous windows with the same appToken.
|
// Remove any previous windows with the same appToken.
|
||||||
mAppsToBeHidden.remove(appToken);
|
mAppsToBeHidden.remove(appToken);
|
||||||
mAppsThatDismissKeyguard.remove(appToken);
|
mAppsThatDismissKeyguard.remove(appToken);
|
||||||
if (mAppsToBeHidden.isEmpty() && mKeyguardSecureIncludingHidden) {
|
if (mAppsToBeHidden.isEmpty()) {
|
||||||
|
if (mKeyguardSecureIncludingHidden) {
|
||||||
mWinShowWhenLocked = win;
|
mWinShowWhenLocked = win;
|
||||||
mHideLockScreen = true;
|
mHideLockScreen = true;
|
||||||
mForceStatusBarFromKeyguard = false;
|
mForceStatusBarFromKeyguard = false;
|
||||||
|
} else if (dismissKeyguard && !mKeyguardSecure) {
|
||||||
|
mAppsThatDismissKeyguard.add(appToken);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (dismissKeyguard) {
|
} else if (dismissKeyguard) {
|
||||||
if (mKeyguardSecure) {
|
if (mKeyguardSecure) {
|
||||||
|
|||||||
Reference in New Issue
Block a user