summaryrefslogtreecommitdiff
path: root/packages/Shell
diff options
context:
space:
mode:
author Sudheer Shanka <sudheersai@google.com> 2023-03-15 14:24:10 -0700
committer Sudheer Shanka <sudheersai@google.com> 2023-03-20 22:29:35 -0700
commit2f1bbc2bb14dba88a0f033fb4ce32bbf20df25ed (patch)
tree619948d0ebac1188095233cfa4458d4c503cde04 /packages/Shell
parent1fd2378e6bc43292ca94cef438be02a8039ec112 (diff)
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
Diffstat (limited to 'packages/Shell')
-rw-r--r--packages/Shell/src/com/android/shell/BugreportProgressService.java2
1 files changed, 1 insertions, 1 deletions
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) {