diff options
| author | 2017-06-08 00:10:39 +0000 | |
|---|---|---|
| committer | 2017-06-08 00:10:39 +0000 | |
| commit | 7ea4f66f355757296f03b74444f1b30fb2a14b06 (patch) | |
| tree | b6712fb8e2cdf1e0adb5b44e7f39d92dd115cca2 | |
| parent | b42e50a3a04f4749a46b4ec131de4fe77935e517 (diff) | |
| parent | 695f21a66189c851435c9dc41b4bee57a44aead5 (diff) | |
Merge "Fixed an issue where the icons had the wrong color" into oc-dev
am: 695f21a661
Change-Id: Id515004fae2e8ad90346ce82b334ae6f61b2c086
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java | 1 | ||||
| -rw-r--r-- | packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index 6fb5d6b8a335..1c1be989b530 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java @@ -1395,6 +1395,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView if (mIsSummaryWithChildren) { mChildrenContainer.setDark(dark, fade, delay); } + updateShelfIconColor(); } public boolean isExpandable() { diff --git a/packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java b/packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java index d44f84547861..2e547e111bb8 100644 --- a/packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java +++ b/packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java @@ -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(); + } } |