Fixed a bug where the secure camera would flash when rotated
Bug: 23602571 Change-Id: I9608a004d97ad27a0f4c6da8e9d955dc644b4941
This commit is contained in:
@@ -4410,7 +4410,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
if (mAppsToBeHidden.isEmpty()) {
|
||||
if (dismissKeyguard && !mKeyguardSecure) {
|
||||
mAppsThatDismissKeyguard.add(appToken);
|
||||
} else if (win.isDrawnLw()) {
|
||||
} else if (win.isDrawnLw() || win.hasAppShownWindows()) {
|
||||
mWinShowWhenLocked = win;
|
||||
mHideLockScreen = true;
|
||||
mForceStatusBarFromKeyguard = false;
|
||||
@@ -4444,7 +4444,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
mWinDismissingKeyguard = win;
|
||||
mSecureDismissingKeyguard = mKeyguardSecure;
|
||||
mForceStatusBarFromKeyguard = mShowingLockscreen && mKeyguardSecure;
|
||||
} else if (mAppsToBeHidden.isEmpty() && showWhenLocked && win.isDrawnLw()) {
|
||||
} else if (mAppsToBeHidden.isEmpty() && showWhenLocked
|
||||
&& (win.isDrawnLw() || win.hasAppShownWindows())) {
|
||||
if (DEBUG_LAYOUT) Slog.v(TAG,
|
||||
"Setting mHideLockScreen to true by win " + win);
|
||||
mHideLockScreen = true;
|
||||
|
||||
Reference in New Issue
Block a user