Show channel groups in settings.

Test: manual
Change-Id: Icfaed2d2d898245fcfa50b25d7ad456e4db07bae
This commit is contained in:
Julia Reynolds
2017-01-27 08:51:23 -05:00
parent cee1e36fbf
commit 5d1506a2af
4 changed files with 80 additions and 38 deletions

View File

@@ -17,6 +17,7 @@ package com.android.settings.notification;
import android.app.INotificationManager;
import android.app.NotificationChannel;
import android.app.NotificationChannelGroup;
import android.app.NotificationManager;
import android.content.Context;
import android.content.Intent;
@@ -121,9 +122,9 @@ public class NotificationBackend {
}
}
public ParceledListSlice<NotificationChannel> getChannels(String pkg, int uid) {
public ParceledListSlice<NotificationChannelGroup> getChannelGroups(String pkg, int uid) {
try {
return sINM.getNotificationChannelsForPackage(pkg, uid, true);
return sINM.getNotificationChannelGroupsForPackage(pkg, uid, true);
} catch (Exception e) {
Log.w(TAG, "Error calling NoMan", e);
return ParceledListSlice.emptyList();