Loading packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/Notifications.kt +3 −5 Original line number Diff line number Diff line Loading @@ -836,14 +836,12 @@ private suspend fun scrollNotificationStack( private fun TransitionState.isOnLockscreen(): Boolean { return currentScene == Scenes.Lockscreen && currentOverlays.isEmpty() } private fun shouldUseLockscreenStackBounds(state: TransitionState): Boolean { return when (state) { is TransitionState.Idle -> state.isOnLockscreen() is TransitionState.Transition -> // Keep using the lockscreen stack bounds when transitioning from lockscreen // to other states for visual consistency, eg. the smart space should be visible. state.isTransitioning(from = Scenes.Lockscreen) // Keep using the lockscreen stack bounds when there is no placeholder on the next content state.fromContent == Scenes.Lockscreen && state.toContent != Scenes.Shade || state.isTransitioningBetween(content = Scenes.Lockscreen, other = Overlays.Bouncer) } } Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/Notifications.kt +3 −5 Original line number Diff line number Diff line Loading @@ -836,14 +836,12 @@ private suspend fun scrollNotificationStack( private fun TransitionState.isOnLockscreen(): Boolean { return currentScene == Scenes.Lockscreen && currentOverlays.isEmpty() } private fun shouldUseLockscreenStackBounds(state: TransitionState): Boolean { return when (state) { is TransitionState.Idle -> state.isOnLockscreen() is TransitionState.Transition -> // Keep using the lockscreen stack bounds when transitioning from lockscreen // to other states for visual consistency, eg. the smart space should be visible. state.isTransitioning(from = Scenes.Lockscreen) // Keep using the lockscreen stack bounds when there is no placeholder on the next content state.fromContent == Scenes.Lockscreen && state.toContent != Scenes.Shade || state.isTransitioningBetween(content = Scenes.Lockscreen, other = Overlays.Bouncer) } } Loading