Merge "resolve merge conflicts of 695f21a661 to oc-dr1-dev" into oc-dr1-dev

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

View File

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

View File

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