Merge "Channel settings updates" into oc-dev

This commit is contained in:
TreeHugger Robot
2017-04-18 15:03:54 +00:00
committed by Android (Google) Code Review
5 changed files with 52 additions and 5 deletions

View File

@@ -161,7 +161,7 @@ public class AppNotificationSettings extends NotificationSettingsBase {
final NotificationChannel channel = channels.get(i);
MasterSwitchPreference channelPref = new MasterSwitchPreference(
getPrefContext());
channelPref.setDisabledByAdmin(mSuspendedAppsAdmin);
channelPref.setSwitchEnabled(mSuspendedAppsAdmin == null && !mAppRow.systemApp);
channelPref.setKey(channel.getId());
channelPref.setTitle(channel.getName());
channelPref.setChecked(channel.getImportance() != IMPORTANCE_NONE);