Merge "Update DndCondition settings summary" into pi-dev am: 9fc72be6c8
am: 3153a0e540
Change-Id: I551283fe04d4df1d2dd492c91ec7589e0f94aa12
This commit is contained in:
@@ -42,9 +42,10 @@ public class DndCondition extends Condition {
|
||||
@VisibleForTesting
|
||||
static final IntentFilter DND_FILTER =
|
||||
new IntentFilter(NotificationManager.ACTION_INTERRUPTION_FILTER_CHANGED_INTERNAL);
|
||||
@VisibleForTesting
|
||||
protected ZenModeConfig mConfig;
|
||||
|
||||
private int mZen;
|
||||
private ZenModeConfig mConfig;
|
||||
private final Receiver mReceiver;
|
||||
|
||||
public DndCondition(ConditionManager manager) {
|
||||
@@ -93,7 +94,7 @@ public class DndCondition extends Condition {
|
||||
@Override
|
||||
public CharSequence getSummary() {
|
||||
return ZenModeConfig.getDescription(mManager.getContext(), mZen != Global.ZEN_MODE_OFF,
|
||||
mConfig);
|
||||
mConfig, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -138,7 +138,7 @@ public class ZenModeSettings extends ZenModeSettingsBase {
|
||||
|
||||
if (zenMode != Settings.Global.ZEN_MODE_OFF) {
|
||||
ZenModeConfig config = NotificationManager.from(mContext).getZenModeConfig();
|
||||
String description = ZenModeConfig.getDescription(mContext, true, config);
|
||||
String description = ZenModeConfig.getDescription(mContext, true, config, false);
|
||||
|
||||
if (description == null) {
|
||||
return mContext.getString(R.string.zen_mode_sound_summary_on);
|
||||
|
Reference in New Issue
Block a user