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
This commit is contained in:
Beverly
2020-09-10 10:14:27 -04:00
committed by Beverly Tai
parent 4db6ccaaa3
commit f0c57b71ec

View File

@@ -1938,6 +1938,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(() -> {