Loading packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/NotificationStackAppearanceIntegrationTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ class NotificationStackAppearanceIntegrationTest : SysuiTestCase() { fakeSceneDataSource.changeScene(toScene = Scenes.Lockscreen) val isScrollable by collectLastValue(scrollViewModel.isScrollable) assertThat(isScrollable).isTrue() assertThat(isScrollable).isFalse() } @Test Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationScrollViewModel.kt +3 −3 Original line number Diff line number Diff line Loading @@ -331,7 +331,8 @@ constructor( combine(sceneInteractor.currentScene, sceneInteractor.currentOverlays) { currentScene, currentOverlays -> currentScene.showsNotifications() || currentOverlays.any { it.showsNotifications() } currentScene.showsScrollableStack() || currentOverlays.any { it.showsScrollableStack() } } .dumpWhileCollecting("isScrollable") Loading Loading @@ -361,10 +362,9 @@ constructor( } } private fun ContentKey.showsNotifications(): Boolean { private fun ContentKey.showsScrollableStack(): Boolean { return when (this) { Overlays.NotificationsShade, Scenes.Lockscreen, Scenes.Shade -> true else -> false } Loading Loading
packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/notification/NotificationStackAppearanceIntegrationTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -191,7 +191,7 @@ class NotificationStackAppearanceIntegrationTest : SysuiTestCase() { fakeSceneDataSource.changeScene(toScene = Scenes.Lockscreen) val isScrollable by collectLastValue(scrollViewModel.isScrollable) assertThat(isScrollable).isTrue() assertThat(isScrollable).isFalse() } @Test Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationScrollViewModel.kt +3 −3 Original line number Diff line number Diff line Loading @@ -331,7 +331,8 @@ constructor( combine(sceneInteractor.currentScene, sceneInteractor.currentOverlays) { currentScene, currentOverlays -> currentScene.showsNotifications() || currentOverlays.any { it.showsNotifications() } currentScene.showsScrollableStack() || currentOverlays.any { it.showsScrollableStack() } } .dumpWhileCollecting("isScrollable") Loading Loading @@ -361,10 +362,9 @@ constructor( } } private fun ContentKey.showsNotifications(): Boolean { private fun ContentKey.showsScrollableStack(): Boolean { return when (this) { Overlays.NotificationsShade, Scenes.Lockscreen, Scenes.Shade -> true else -> false } Loading