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

Commit 20938306 authored by Josh Tsuji's avatar Josh Tsuji Committed by Automerger Merge Worker
Browse files

Merge "Fix issues with unlocking during a swipe on the lockscreen." into...

Merge "Fix issues with unlocking during a swipe on the lockscreen." into tm-qpr-dev am: 286074d5 am: 3a7f5458

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21032641



Change-Id: Ia721a974330d71ee55759ffc15368c2f41f2afbb
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 332070ab 3a7f5458
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2275,6 +2275,10 @@ public class KeyguardViewMediator implements CoreStartable, Dumpable,
        }
        if (!mKeyguardDonePending && mHideAnimationRun && !mHideAnimationRunning) {
            handleKeyguardDone();
        } else if (mSurfaceBehindRemoteAnimationRunning) {
            // We're already running the keyguard exit animation, likely due to an in-progress swipe
            // to unlock.
           exitKeyguardAndFinishSurfaceBehindRemoteAnimation(false /* cancelled */);
        } else if (!mHideAnimationRun) {
            if (DEBUG) Log.d(TAG, "tryKeyguardDone: starting pre-hide animation");
            mHideAnimationRun = true;
+2 −0
Original line number Diff line number Diff line
@@ -1397,6 +1397,7 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
        // Things that mean we're not swiping to dismiss the keyguard, and should ignore this
        // expansion:
        // - Keyguard isn't even visible.
        // - We're swiping on the bouncer, not the lockscreen.
        // - Keyguard is occluded. Expansion changes here are the shade being expanded over the
        //   occluding activity.
        // - Keyguard is visible, but can't be dismissed (swiping up will show PIN/password prompt).
@@ -1406,6 +1407,7 @@ public class CentralSurfacesImpl implements CoreStartable, CentralSurfaces {
        // - QS is expanded and we're swiping - swiping up now will hide QS, not dismiss the
        //   keyguard.
        if (!isKeyguardShowing()
                || mStatusBarKeyguardViewManager.primaryBouncerIsOrWillBeShowing()
                || isOccluded()
                || !mKeyguardStateController.canDismissLockScreen()
                || mKeyguardViewMediator.isAnySimPinSecure()