Settings: New zen option to allow repeat callers.

Bug: 20064962
Change-Id: Icc65da146503386c057d7f78d6610f83f56d1a92
This commit is contained in:
John Spurlock
2015-04-10 08:11:12 -04:00
parent d333a7d9f1
commit 35fba3eeaf
4 changed files with 42 additions and 6 deletions

View File

@@ -159,10 +159,11 @@ public class ZenModeSettings extends ZenModeSettingsBase
}
private void updatePrioritySettingsSummary() {
final boolean callers = mConfig.allowCalls || mConfig.allowRepeatCallers;
String s = getResources().getString(R.string.zen_mode_alarms);
s = appendLowercase(s, mConfig.allowReminders, R.string.zen_mode_reminders);
s = appendLowercase(s, mConfig.allowEvents, R.string.zen_mode_events);
s = appendLowercase(s, mConfig.allowCalls, R.string.zen_mode_calls);
s = appendLowercase(s, callers, R.string.zen_mode_selected_callers);
s = appendLowercase(s, mConfig.allowMessages, R.string.zen_mode_messages);
mPrioritySettings.setSummary(s);
}