Allow some system channels to be blocked
Test: manual Bug: 38428796 Change-Id: If6853f1d847ade968d2bd3a7454ddce0fdda62f0
This commit is contained in:
@@ -443,4 +443,12 @@ abstract public class NotificationSettingsBase extends SettingsPreferenceFragmen
|
||||
|
||||
return lockscreenSecure;
|
||||
}
|
||||
|
||||
protected boolean isChannelBlockable(boolean systemApp, NotificationChannel channel) {
|
||||
if (!mAppRow.systemApp) {
|
||||
return true;
|
||||
}
|
||||
return channel.isBlockableSystem()
|
||||
|| channel.getImportance() == NotificationManager.IMPORTANCE_NONE;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user