From 2f1bbc2bb14dba88a0f033fb4ce32bbf20df25ed Mon Sep 17 00:00:00 2001 From: Sudheer Shanka Date: Wed, 15 Mar 2023 14:24:10 -0700 Subject: Apply delivery group policies to CLOSE_SYSTEM_DIALOG broadcast. - The "set-defer-until-active" policy is applied so that the broadcast targeted to apps in the Cached state is deferred until they come out of that state. - The "deliver-most-recent" policy is applied so that if there are already pending broadcasts waiting to be delivered when a new broadcast is sent, the old ones are discarded. Bug: 271950524 Test: TH Change-Id: Iab6064cf1436e02dd3d46badeeb6ab8dd6198c69 --- packages/Shell/src/com/android/shell/BugreportProgressService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/Shell/src') diff --git a/packages/Shell/src/com/android/shell/BugreportProgressService.java b/packages/Shell/src/com/android/shell/BugreportProgressService.java index 6f7d20a950d5..067efe97f6b6 100644 --- a/packages/Shell/src/com/android/shell/BugreportProgressService.java +++ b/packages/Shell/src/com/android/shell/BugreportProgressService.java @@ -1697,7 +1697,7 @@ public class BugreportProgressService extends Service { } private void collapseNotificationBar() { - sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS)); + closeSystemDialogs(); } private static Looper newLooper(String name) { -- cgit v1.2.3-59-g8ed1b