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

am: 695f21a661

Change-Id: Id515004fae2e8ad90346ce82b334ae6f61b2c086
This commit is contained in:
Ian Pedowitz
2017-06-08 00:10:39 +00:00
committed by android-build-merger
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();
}
}