Modify Summary for Mode's Apps settings page
Adds call to SummaryHelper to set Apps preference summary. Bug: 308819928 Test: atest ZenModeAppsLinkPreferenceControllerTest Flag: android.app.modes_ui Change-Id: Iebec11afc62ecb79386e1866af57cd4e68461a95
This commit is contained in:
@@ -357,6 +357,19 @@ public class NotificationBackend {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns all of a user's packages that have at least one channel that will bypass DND
|
||||
*/
|
||||
public List<String> getPackagesBypassingDnd(int userId,
|
||||
boolean includeConversationChannels) {
|
||||
try {
|
||||
return sINM.getPackagesBypassingDnd(userId, includeConversationChannels);
|
||||
} catch (Exception e) {
|
||||
Log.w(TAG, "Error calling NoMan", e);
|
||||
return new ArrayList<>();
|
||||
}
|
||||
}
|
||||
|
||||
public void updateChannel(String pkg, int uid, NotificationChannel channel) {
|
||||
try {
|
||||
sINM.updateNotificationChannelForPackage(pkg, uid, channel);
|
||||
|
Reference in New Issue
Block a user