Merge "Exclude implicit modes from the summary of the Modes entry in Settings" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
f9ea2a52d3
@@ -500,10 +500,13 @@ class ZenModeSummaryHelper {
|
||||
Locale.getDefault());
|
||||
return buildModesSummary(msgFormat, activeModes);
|
||||
} else {
|
||||
List<ZenMode> modesExcludingImplicit = modes.stream()
|
||||
.filter(m -> m.getKind() != ZenMode.Kind.IMPLICIT)
|
||||
.toList();
|
||||
MessageFormat msgFormat = new MessageFormat(
|
||||
mContext.getString(R.string.zen_modes_summary),
|
||||
Locale.getDefault());
|
||||
return buildModesSummary(msgFormat, modes);
|
||||
return buildModesSummary(msgFormat, modesExcludingImplicit);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user