Fix blocked notifications screen

Don't filter out apps have don't have any usage events -
the package's notifications are still blocked

Test: atest, and verify that the packages match the 'blocked
count' subtext on the previous screen on an affected device
Fixes: 158343184

Change-Id: Iac01708849e3ae0b82f97db679ce512fc9675a17
This commit is contained in:
Julia Reynolds
2020-06-09 12:17:58 -04:00
parent 21ac98e2f1
commit 425504c2de
2 changed files with 9 additions and 1 deletions

View File

@@ -84,6 +84,9 @@ public class AppStateNotificationBridge extends AppStateBaseBridge {
for (AppEntry entry : apps) {
NotificationsSentState stats =
map.get(getKey(UserHandle.getUserId(entry.info.uid), entry.info.packageName));
if (stats == null) {
stats = new NotificationsSentState();
}
calculateAvgSentCounts(stats);
addBlockStatus(entry, stats);
entry.extraInfo = stats;