arc-notifications: Allow app icons to be visible in arc-notifications

This was caused by shelf icon visibility being set on an empty row in
NotificationEntry

Test: None
Bug: 171839585
Change-Id: I5ea4ccd34ca489fba6b5a83c39718d0d8bf149d2
This commit is contained in:
Sara Kato
2020-12-25 13:26:20 +09:00
parent 17a32e8072
commit afbbcd9f53

View File

@@ -938,6 +938,7 @@ public final class NotificationEntry extends ListEntry {
/** Whether or not the icon for this notification is visible in the shelf. */
public void setShelfIconVisible(boolean shelfIconVisible) {
if (row == null) return;
mShelfIconVisible = shelfIconVisible;
updateShelfIconVisibility();
}