Skip to content
Snippets Groups Projects
Commit adcc9c5d authored by Steve Elliott's avatar Steve Elliott Committed by Android (Google) Code Review
Browse files

Merge "Update NotifIconAreaCtrlr if NICRefactor is off" into main

parents 4c559306 2671bd0d
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,8 @@ internal constructor(
controller.setNotifStats(notifStats)
if (NotificationIconContainerRefactor.isEnabled || FooterViewRefactor.isEnabled) {
renderListInteractor.setRenderedList(entries)
} else {
}
if (!NotificationIconContainerRefactor.isEnabled) {
notificationIconAreaController.updateNotificationIcons(entries)
}
}
......
......@@ -81,7 +81,7 @@ class StackCoordinatorTest : SysuiTestCase() {
}
@Test
@DisableFlags(NotificationIconContainerRefactor.FLAG_NAME, FooterViewRefactor.FLAG_NAME)
@DisableFlags(NotificationIconContainerRefactor.FLAG_NAME)
fun testUpdateNotificationIcons() {
afterRenderListListener.onAfterRenderList(listOf(entry), stackController)
verify(notificationIconAreaController).updateNotificationIcons(eq(listOf(entry)))
......@@ -89,7 +89,14 @@ class StackCoordinatorTest : SysuiTestCase() {
@Test
@EnableFlags(NotificationIconContainerRefactor.FLAG_NAME)
fun testSetRenderedListOnInteractor() {
fun testSetRenderedListOnInteractor_iconContainerFlagOn() {
afterRenderListListener.onAfterRenderList(listOf(entry), stackController)
verify(renderListInteractor).setRenderedList(eq(listOf(entry)))
}
@Test
@EnableFlags(FooterViewRefactor.FLAG_NAME)
fun testSetRenderedListOnInteractor_footerFlagOn() {
afterRenderListListener.onAfterRenderList(listOf(entry), stackController)
verify(renderListInteractor).setRenderedList(eq(listOf(entry)))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment