Merge "Fixed an issue where the icons had the wrong color" into oc-dev

This commit is contained in:
Ian Pedowitz
2017-06-08 00:00:16 +00:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 0 deletions

View File

@@ -1395,6 +1395,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView
if (mIsSummaryWithChildren) {
mChildrenContainer.setDark(dark, fade, delay);
}
updateShelfIconColor();
}
public boolean isExpandable() {

View File

@@ -95,4 +95,11 @@ public class ExpandableNotificationRowTest extends SysuiTestCase {
row.setHideSensitive(true, false, 0, 0);
verify(row).updateShelfIconColor();
}
@Test
public void testIconColorShouldBeUpdatedWhenSettingDark() throws Exception {
ExpandableNotificationRow row = spy(mNotificationTestHelper.createRow());
row.setDark(true, false, 0);
verify(row).updateShelfIconColor();
}
}