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

Commit 90b5e07c authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where the secure camera would flash when rotated

Bug: 23602571
Change-Id: I9608a004d97ad27a0f4c6da8e9d955dc644b4941
parent c3841985
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;