Update DndCondition settings summary
Test: make ROBOTEST_FILTER=ZenModeSettingsTest RunSettingsRoboTests -j40 Test: atest DndConditionTest Change-Id: Iff39e9dfda25453bfe4c2554fea3ef7be0832413 Fixes: 77704156 Fixes: 76208187
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
|
||||
|
@@ -124,7 +124,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