Limit unconfigurability to specified channels.
Bug: 62426259 Test: Unit test in NotificationBackendTest.java Change-Id: I79d069cee0b641d520b02f8a25751ec3e0d4632d
This commit is contained in:
@@ -212,7 +212,8 @@ public class AppNotificationSettings extends NotificationSettingsBase {
|
||||
MasterSwitchPreference channelPref = new MasterSwitchPreference(
|
||||
getPrefContext());
|
||||
channelPref.setSwitchEnabled(mSuspendedAppsAdmin == null
|
||||
&& isChannelBlockable(mAppRow.systemApp, channel));
|
||||
&& isChannelBlockable(mAppRow.systemApp, channel)
|
||||
&& isChannelConfigurable(channel));
|
||||
channelPref.setKey(channel.getId());
|
||||
channelPref.setTitle(channel.getName());
|
||||
channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE);
|
||||
|
Reference in New Issue
Block a user