diff --git a/res/xml/channel_notification_settings.xml b/res/xml/channel_notification_settings.xml index ff1427b7d7b..44a21acbe4c 100644 --- a/res/xml/channel_notification_settings.xml +++ b/res/xml/channel_notification_settings.xml @@ -25,10 +25,9 @@ android:order="1" android:layout="@layout/settings_entity_header" /> - + android:order="2" /> { boolean value = (Boolean) o; - int importance = value ? channel.getOriginalImportance() : IMPORTANCE_NONE; + int importance = value + ? Math.max(channel.getOriginalImportance(), IMPORTANCE_LOW) + : IMPORTANCE_NONE; channel.setImportance(importance); channel.lockFields(NotificationChannel.USER_LOCKED_IMPORTANCE); PrimarySwitchPreference channelPref1 = (PrimarySwitchPreference) preference;