From db9313378223da6a16673054310d2c0414f86343 Mon Sep 17 00:00:00 2001 From: Jorim Jaggi Date: Thu, 1 Jun 2017 16:07:34 -0700 Subject: [PATCH] Fix issue with dialer launch transition Test: Disable assistant, launch dialer on secure keyguard Test: Launch assistant Test: Launch camera Change-Id: Ic3231f5f28fa0cf704b5f5d6e1993b296f14f5a3 Fixes: 38450585 --- .../src/com/android/systemui/statusbar/phone/StatusBar.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index aedecc516b645..1e658d90d3d07 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -3556,6 +3556,12 @@ public class StatusBar extends SystemUI implements DemoMode, // Do it after DismissAction has been processed to conserve the needed ordering. mHandler.post(this::runPostCollapseRunnables); } + } else if (isInLaunchTransition() && mNotificationPanel.isLaunchTransitionFinished()) { + + // We are not dismissing the shade, but the launch transition is already finished, + // so nobody will call readyForKeyguardDone anymore. Post it such that + // keyguardDonePending gets called first. + mHandler.post(mStatusBarKeyguardViewManager::readyForKeyguardDone); } return deferred; }, cancelAction, afterKeyguardGone);