Allow some system channels to be blocked
Test: manual Bug: 38428796 Change-Id: If6853f1d847ade968d2bd3a7454ddce0fdda62f0
This commit is contained in:
@@ -203,7 +203,8 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
||||
final NotificationChannel channel) {
|
||||
MasterSwitchPreference channelPref = new MasterSwitchPreference(
|
||||
getPrefContext());
|
||||
channelPref.setSwitchEnabled(mSuspendedAppsAdmin == null && !mAppRow.systemApp);
|
||||
channelPref.setSwitchEnabled(mSuspendedAppsAdmin == null
|
||||
&& isChannelBlockable(mAppRow.systemApp, channel));
|
||||
channelPref.setKey(channel.getId());
|
||||
channelPref.setTitle(channel.getName());
|
||||
channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE);
|
||||
|
Reference in New Issue
Block a user