From ce4b7e3d43ba55ffd0e1947b31fe6fec86943301 Mon Sep 17 00:00:00 2001 From: kwaky Date: Wed, 13 May 2020 11:49:31 -0700 Subject: [PATCH] Post KeyguardGone request to main Handler so multidisplay keyguards are dismissed properly. While keyguard is dismissed, onDisplayChanged is called, which calls hiding and showing presentations. Dismissing keyguard on these displays should be done when onDisplayChanged is done processing. Test: Manual Bug: 156117648 Change-Id: Ib6d2ce407aef2fee22cfec227d243650b5643c25 --- .../systemui/car/keyguard/CarKeyguardViewController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java b/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java index aee7643b69f7f..1bf8656ac3fe4 100644 --- a/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java +++ b/packages/CarSystemUI/src/com/android/systemui/car/keyguard/CarKeyguardViewController.java @@ -188,7 +188,7 @@ public class CarKeyguardViewController extends OverlayViewController implements stop(); getOverlayViewGlobalStateController().setWindowFocusable(/* focusable= */ false); mKeyguardStateController.notifyKeyguardDoneFading(); - mViewMediatorCallback.keyguardGone(); + mHandler.post(mViewMediatorCallback::keyguardGone); notifyKeyguardUpdateMonitor(); }