diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/car/UserGridView.java b/packages/SystemUI/src/com/android/systemui/statusbar/car/UserGridView.java index 2294931424026..d90a21dec117d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/car/UserGridView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/car/UserGridView.java @@ -109,7 +109,7 @@ public class UserGridView extends GridView { private void showOfflineAuthUi() { // TODO: Show keyguard UI in-place. - mStatusBar.executeRunnableDismissingKeyguard(null, null, true, true); + mStatusBar.executeRunnableDismissingKeyguard(null, null, true, true, true); } @Override diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java index 83a15ad4a5a89..8d74536c76431 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBottomAreaView.java @@ -490,7 +490,7 @@ public class KeyguardBottomAreaView extends FrameLayout implements View.OnClickL AsyncTask.execute(runnable); } else { mPhoneStatusBar.executeRunnableDismissingKeyguard(runnable, null /* cancelAction */, - false /* dismissShade */, false /* afterKeyguardGone */); + false /* dismissShade */, false /* afterKeyguardGone */, true /* deferred */); } } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java index 8617104799d7a..7e2fa2da94ce3 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -1199,7 +1199,7 @@ public class NotificationPanelView extends PanelView implements } if (mQsFullyExpanded && mFalsingManager.shouldEnforceBouncer()) { mStatusBar.executeRunnableDismissingKeyguard(null, null /* cancelAction */, - false /* dismissShade */, true /* afterKeyguardGone */); + false /* dismissShade */, true /* afterKeyguardGone */, false /* deferred */); } if (DEBUG) { invalidate(); @@ -1794,7 +1794,8 @@ public class NotificationPanelView extends PanelView implements public void run() { mKeyguardBottomArea.launchLeftAffordance(); } - }, null, true /* dismissShade */, false /* afterKeyguardGone */); + }, null, true /* dismissShade */, false /* afterKeyguardGone */, + true /* deferred */); } else { mKeyguardBottomArea.launchLeftAffordance(); @@ -1813,7 +1814,8 @@ public class NotificationPanelView extends PanelView implements public void run() { mKeyguardBottomArea.launchCamera(mLastCameraLaunchSource); } - }, null, true /* dismissShade */, false /* afterKeyguardGone */); + }, null, true /* dismissShade */, false /* afterKeyguardGone */, + true /* deferred */); } else { mKeyguardBottomArea.launchCamera(mLastCameraLaunchSource); diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index c36c482e785ea..436dc9d914c38 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -3177,13 +3177,14 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } }; executeRunnableDismissingKeyguard(runnable, cancelRunnable, dismissShade, - afterKeyguardGone); + afterKeyguardGone, true /* deferred */); } public void executeRunnableDismissingKeyguard(final Runnable runnable, final Runnable cancelAction, final boolean dismissShade, - final boolean afterKeyguardGone) { + final boolean afterKeyguardGone, + final boolean deferred) { final boolean keyguardShowing = mStatusBarKeyguardViewManager.isShowing(); dismissKeyguardThenExecute(new OnDismissAction() { @Override @@ -3206,7 +3207,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_RECENTS_PANEL, true /* force */, true /* delayed*/); } - return true; + return deferred; } }, cancelAction, afterKeyguardGone); } @@ -3525,7 +3526,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, @Override public void run() { mLeaveOpenOnKeyguardHide = true; - executeRunnableDismissingKeyguard(runnable, null, false, false); + executeRunnableDismissingKeyguard(runnable, null, false, false, false); } }); } diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index c962606633daf..4c3a0b1838986 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -701,7 +701,7 @@ public class NotificationStackScrollLayout extends ViewGroup mFalsingManager.onNotificationDismissed(); if (mFalsingManager.shouldEnforceBouncer()) { mPhoneStatusBar.executeRunnableDismissingKeyguard(null, null /* cancelAction */, - false /* dismissShade */, true /* afterKeyguardGone */); + false /* dismissShade */, true /* afterKeyguardGone */, false /* deferred */); } }