Merge "Fix ordering of notifying dismiss callback" into oc-dev
am: e85f8eb0ca
Change-Id: Ia851bbedb5fc429ea05eb0b1eaa5cbcddec7b961
This commit is contained in:
@@ -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 */);
|
||||
}
|
||||
|
||||
@@ -795,6 +795,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
|
||||
|
||||
Reference in New Issue
Block a user