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

Commit 4bcd7ec4 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Make sure to call dismissKeyguard after setOccluded am: ec50931d am: 1d4f2b99

am: ae7f618f

Change-Id: Ic11164067ce5145771fd0e6f13dcd478c16877f2
parents a415d687 ae7f618f
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -5410,18 +5410,15 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                }
            } else if (mDismissKeyguard != DISMISS_KEYGUARD_NONE) {
                mKeyguardHidden = false;
                boolean willDismiss = false;
                if (mDismissKeyguard == DISMISS_KEYGUARD_START) {
                boolean dismissKeyguard = false;
                final boolean trusted = mKeyguardDelegate.isTrusted();
                    willDismiss = trusted && mKeyguardOccluded && mKeyguardDelegate != null
                            && mKeyguardDelegate.isShowing();
                if (mDismissKeyguard == DISMISS_KEYGUARD_START) {
                    final boolean willDismiss = trusted && mKeyguardOccluded
                            && mKeyguardDelegate != null && mKeyguardDelegate.isShowing();
                    if (willDismiss) {
                        mCurrentlyDismissingKeyguard = true;
                    }

                    // Only launch the next keyguard unlock window once per window.
                    mHandler.post(() -> mKeyguardDelegate.dismiss(
                            trusted /* allowWhileOccluded */));
                    dismissKeyguard = true;
                }

                // If we are currently dismissing Keyguard, there is no need to unocclude it.
@@ -5432,6 +5429,12 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                                | FINISH_LAYOUT_REDO_WALLPAPER;
                    }
                }

                if (dismissKeyguard) {
                    // Only launch the next keyguard unlock window once per window.
                    mHandler.post(() -> mKeyguardDelegate.dismiss(
                            trusted /* allowWhileOccluded */));
                }
            } else {
                mWinDismissingKeyguard = null;
                mSecureDismissingKeyguard = false;