summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Beverly <beverlyt@google.com> 2020-09-10 10:14:27 -0400
committer Beverly Tai <beverlyt@google.com> 2020-09-10 15:40:33 +0000
commitf0c57b71eca299bf520c350b3921b7f0899da7e3 (patch)
treefcb518ae02fb8990d8575647cf51900e69d99de2
parent4db6ccaaa3f67d65c340c5d3a4bffa0f5ebcd2b5 (diff)
Update notif ranking on consolidated policy change
Test: manual 1. Turn on DND that doesn't suppress vis effects 2. Turn on Bedtime Mode Observe: notifications are hidden from Bedtime mode Fixes: 167011205 Change-Id: I7e383182e14a26830d185d3a233518ee7aecda24
-rwxr-xr-xservices/core/java/com/android/server/notification/NotificationManagerService.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java
index f8d54adbeb5b..e42dd359dad1 100755
--- a/services/core/java/com/android/server/notification/NotificationManagerService.java
+++ b/services/core/java/com/android/server/notification/NotificationManagerService.java
@@ -1939,6 +1939,13 @@ public class NotificationManagerService extends SystemService {
}
@Override
+ void onConsolidatedPolicyChanged() {
+ Binder.withCleanCallingIdentity(() -> {
+ mRankingHandler.requestSort();
+ });
+ }
+
+ @Override
void onAutomaticRuleStatusChanged(int userId, String pkg, String id, int status) {
Binder.withCleanCallingIdentity(() -> {
Intent intent = new Intent(ACTION_AUTOMATIC_ZEN_RULE_STATUS_CHANGED);