Merge "resolve merge conflicts of 7ea4f66f35 to oc-dr1-dev-plus-aosp" into oc-dr1-dev-plus-aosp

This commit is contained in:
Ian Pedowitz
2017-06-08 05:42:17 +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) {
mChildrenContainer.setDark(dark, fade, delay);
}
updateShelfIconColor();
}
public boolean isExpandable() {

View File

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