Don't show dnd suppressed icons on aod

The aod icons are from the shelf. When DND is suppressing
status bar icons and aod is on (mFullyDark), still don't show
the icons that would show on AOD (if DND wasn't on).

Test: manual
Test: atest NotificationIconAreaControllerTest
Fixes: 122636236
Change-Id: I4680ea1c88427207274da48a6ab69f0c00a3ac69
This commit is contained in:
Beverly
2019-04-04 09:59:33 -04:00
parent dd07ae579c
commit 4bae644417

View File

@@ -215,16 +215,13 @@ public class NotificationIconAreaController implements DarkReceiver,
if (entry.isRowDismissed() && hideDismissed) {
return false;
}
if (hideRepliedMessages && entry.isLastMessageFromReply()) {
return false;
}
// showAmbient == show in shade but not shelf
if (!showAmbient && entry.shouldSuppressStatusBar()) {
if ((!showAmbient || mFullyDark) && entry.shouldSuppressStatusBar()) {
return false;
}
return true;
}