Add group name into channel summary, if applicable.
Bug: 36642898 Test: ran integration & robo tests (no new failures); verified manually with apps with channels & without. Change-Id: I16a255b0e5d929f4485d3725bd18179e6f411c03
This commit is contained in:
@@ -122,6 +122,19 @@ public class NotificationBackend {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public NotificationChannelGroup getGroup(String groupId, String pkg, int uid) {
|
||||
if (groupId == null) {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return sINM.getNotificationChannelGroupForPackage(groupId, pkg, uid);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public ParceledListSlice<NotificationChannelGroup> getChannelGroups(String pkg, int uid) {
|
||||
try {
|
||||
return sINM.getNotificationChannelGroupsForPackage(pkg, uid, false);
|
||||
|
Reference in New Issue
Block a user