Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59cbfad0 authored by Lyn's avatar Lyn
Browse files

Restore HUN appear animations in shade

Fixes: 350801055
Test: send delayed HUNs
      => appear animation runs in shade (and while scrolled),
         lock screen, aod, fullscreen qs
Test: NotificationListViewModelTest
Flag: com.android.systemui.notifications_heads_up_refactor

Change-Id: I8b0ae563570844930dd2d995a86526180dd30f0c
parent 7afcba06
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -633,7 +633,7 @@ class NotificationListViewModelTest(flags: FlagsParameterization) : SysuiTestCas

    @Test
    @EnableFlags(NotificationsHeadsUpRefactor.FLAG_NAME)
    fun headsUpAnimationsEnabled_keyguardShowing_false() =
    fun headsUpAnimationsEnabled_keyguardShowing_true() =
        testScope.runTest {
            val animationsEnabled by collectLastValue(underTest.headsUpAnimationsEnabled)

@@ -641,6 +641,6 @@ class NotificationListViewModelTest(flags: FlagsParameterization) : SysuiTestCas
            fakeKeyguardRepository.setStatusBarState(StatusBarState.KEYGUARD)
            runCurrent()

            assertThat(animationsEnabled).isFalse()
            assertThat(animationsEnabled).isTrue()
        }
}
+1 −7
Original line number Diff line number Diff line
@@ -275,13 +275,7 @@ constructor(
        if (NotificationsHeadsUpRefactor.isUnexpectedlyInLegacyMode()) {
            flowOf(false)
        } else {
            combine(
                notificationStackInteractor.isShowingOnLockscreen,
                shadeInteractor.isShadeFullyCollapsed
            ) { (isKeyguardShowing, isShadeFullyCollapsed) ->
                !isKeyguardShowing && isShadeFullyCollapsed
            }
                .dumpWhileCollecting("headsUpAnimationsEnabled")
            flowOf(true).dumpWhileCollecting("headsUpAnimationsEnabled")
        }
    }