Update custom zen settings "off" string

zen_mode_sound_summary_off should only be used when describing the
number of schedules that are enabled (and requires a numeric parameter).
Instead, use the string "off" when a sound isn't enabled by a custom dnd
setting.

Fixes: 189120026
Test: manual
Change-Id: I8bc180353a61455b124801d14f0d319f49bb341c
This commit is contained in:
Beverly
2021-05-25 13:31:52 -04:00
parent 37947fc40c
commit 06b1ba1d09

View File

@@ -274,7 +274,7 @@ public class ZenModeSettingsFooterPreferenceController extends AbstractZenModePr
}
private int getAllowRes(boolean allow) {
return allow ? R.string.zen_mode_sound_summary_on : R.string.zen_mode_sound_summary_off;
return allow ? R.string.zen_mode_sound_summary_on : R.string.switch_off_text;
}
@Override