Merge "Allow some system channels to be blocked" into oc-dev am: 540e8f50e3

am: 166a994a4c

Change-Id: Ide3aeac0c328f08becc693795ef5553fa0c9a281
This commit is contained in:
Julia Reynolds
2017-05-26 15:02:40 +00:00
committed by android-build-merger
3 changed files with 11 additions and 2 deletions

View File

@@ -228,7 +228,7 @@ public class ChannelNotificationSettings extends NotificationSettingsBase {
mBlockBar.setKey(KEY_BLOCK);
getPreferenceScreen().addPreference(mBlockBar);
if (mAppRow.systemApp && mChannel.getImportance() != NotificationManager.IMPORTANCE_NONE) {
if (!isChannelBlockable(mAppRow.systemApp, mChannel)) {
setVisible(mBlockBar, false);
}