Loading src/com/android/settings/notification/ZenModeCallsPreferenceController.java +13 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,9 @@ package com.android.settings.notification; import android.app.NotificationManager; import android.content.Context; import android.provider.Settings; import androidx.preference.Preference; Loading Loading @@ -50,6 +52,16 @@ public class ZenModeCallsPreferenceController extends public void updateState(Preference preference) { super.updateState(preference); switch (getZenMode()) { case Settings.Global.ZEN_MODE_NO_INTERRUPTIONS: case Settings.Global.ZEN_MODE_ALARMS: preference.setEnabled(false); preference.setSummary(mBackend.getAlarmsTotalSilenceCallsMessagesSummary( NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)); break; default: preference.setEnabled(true); preference.setSummary(mSummaryBuilder.getCallsSettingSummary(getPolicy())); } } } src/com/android/settings/notification/ZenModeMessagesPreferenceController.java +13 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,9 @@ package com.android.settings.notification; import android.app.NotificationManager; import android.content.Context; import android.provider.Settings; import androidx.preference.Preference; Loading Loading @@ -49,6 +51,16 @@ public class ZenModeMessagesPreferenceController extends public void updateState(Preference preference) { super.updateState(preference); switch (getZenMode()) { case Settings.Global.ZEN_MODE_NO_INTERRUPTIONS: case Settings.Global.ZEN_MODE_ALARMS: preference.setEnabled(false); preference.setSummary(mBackend.getAlarmsTotalSilenceCallsMessagesSummary( NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES)); break; default: preference.setEnabled(true); preference.setSummary(mSummaryBuilder.getMessagesSettingSummary(getPolicy())); } } } Loading
src/com/android/settings/notification/ZenModeCallsPreferenceController.java +13 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,9 @@ package com.android.settings.notification; import android.app.NotificationManager; import android.content.Context; import android.provider.Settings; import androidx.preference.Preference; Loading Loading @@ -50,6 +52,16 @@ public class ZenModeCallsPreferenceController extends public void updateState(Preference preference) { super.updateState(preference); switch (getZenMode()) { case Settings.Global.ZEN_MODE_NO_INTERRUPTIONS: case Settings.Global.ZEN_MODE_ALARMS: preference.setEnabled(false); preference.setSummary(mBackend.getAlarmsTotalSilenceCallsMessagesSummary( NotificationManager.Policy.PRIORITY_CATEGORY_CALLS)); break; default: preference.setEnabled(true); preference.setSummary(mSummaryBuilder.getCallsSettingSummary(getPolicy())); } } }
src/com/android/settings/notification/ZenModeMessagesPreferenceController.java +13 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,9 @@ package com.android.settings.notification; import android.app.NotificationManager; import android.content.Context; import android.provider.Settings; import androidx.preference.Preference; Loading Loading @@ -49,6 +51,16 @@ public class ZenModeMessagesPreferenceController extends public void updateState(Preference preference) { super.updateState(preference); switch (getZenMode()) { case Settings.Global.ZEN_MODE_NO_INTERRUPTIONS: case Settings.Global.ZEN_MODE_ALARMS: preference.setEnabled(false); preference.setSummary(mBackend.getAlarmsTotalSilenceCallsMessagesSummary( NotificationManager.Policy.PRIORITY_CATEGORY_MESSAGES)); break; default: preference.setEnabled(true); preference.setSummary(mSummaryBuilder.getMessagesSettingSummary(getPolicy())); } } }