Notification channel settings updates
- Show a deleted count instead of individual deleted channels - Make the link to app settings more prominent - Reload settings onresume Change-Id: I4f493181194943310ba536eb2bca270cec7cafce Fixes: 36119790 Fixes: 36191444 Test: manual
This commit is contained in:
@@ -124,7 +124,7 @@ public class NotificationBackend {
|
||||
|
||||
public ParceledListSlice<NotificationChannelGroup> getChannelGroups(String pkg, int uid) {
|
||||
try {
|
||||
return sINM.getNotificationChannelGroupsForPackage(pkg, uid, true);
|
||||
return sINM.getNotificationChannelGroupsForPackage(pkg, uid, false);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
return ParceledListSlice.emptyList();
|
||||
@@ -139,6 +139,15 @@ public class NotificationBackend {
|
||||
}
|
||||
}
|
||||
|
||||
public int getDeletedChannelCount(String pkg, int uid) {
|
||||
try {
|
||||
return sINM.getDeletedChannelCount(pkg, uid);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
static class Row {
|
||||
public String section;
|
||||
}
|
||||
|
Reference in New Issue
Block a user