Merge "Filter out disabled modes from the "can activate automatically" count" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
494dc4c282
@@ -514,7 +514,7 @@ class ZenModeSummaryHelper {
|
||||
return msgFormat.format(args);
|
||||
} else {
|
||||
int automaticModeCount = (int) modes.stream()
|
||||
.filter(m -> !m.isManualDnd() && !m.isCustomManual())
|
||||
.filter(m -> m.isEnabled() && !m.isManualDnd() && !m.isCustomManual())
|
||||
.count();
|
||||
|
||||
MessageFormat msgFormat = new MessageFormat(
|
||||
|
||||
Reference in New Issue
Block a user