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

Commit 7a52a58f authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Merge "Fix ordering of notifying dismiss callback" into oc-dev am: e85f8eb0

am: a55a6626

Change-Id: Ic24eaca241ddc2c84395a1d2bdaf6dd554b0e55b
parents f4876d18 a55a6626
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1827,11 +1827,11 @@ public class KeyguardViewMediator extends SystemUI {

            mWakeAndUnlocking = false;
            setShowingLocked(false);
            mDismissCallbackRegistry.notifyDismissSucceeded();
            mStatusBarKeyguardViewManager.hide(startTime, fadeoutDuration);
            resetKeyguardDonePendingLocked();
            mHideAnimationRun = false;
            adjustStatusBarLocked();
            mDismissCallbackRegistry.notifyDismissSucceeded();
            sendUserPresentBroadcast();
            mUpdateMonitor.setKeyguardGoingAway(false /* goingAway */);
        }
+4 −0
Original line number Diff line number Diff line
@@ -830,6 +830,10 @@ public class TrustManagerService extends SystemService {
            // coalesce refresh messages.
            mHandler.removeMessages(MSG_KEYGUARD_SHOWING_CHANGED);
            mHandler.sendEmptyMessage(MSG_KEYGUARD_SHOWING_CHANGED);

            // Make sure handler processes the message before returning, such that isDeviceLocked
            // after this call will retrieve the correct value.
            mHandler.runWithScissors(() -> {}, 0);
        }

        @Override