Loading packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/Notifications.kt +10 −0 Original line number Diff line number Diff line Loading @@ -259,6 +259,7 @@ fun SceneScope.ConstrainedNotificationStack( HeadsUpNotificationSpace( stackScrollView = stackScrollView, viewModel = viewModel, useHunBounds = { shouldUseLockscreenHunBounds(layoutState.transitionState) }, modifier = Modifier.align(Alignment.TopCenter), ) NotificationStackCutoffGuideline( Loading Loading @@ -541,6 +542,7 @@ fun SceneScope.NotificationScrollingStack( HeadsUpNotificationSpace( stackScrollView = stackScrollView, viewModel = viewModel, useHunBounds = { !shouldUseLockscreenHunBounds(layoutState.transitionState) }, modifier = Modifier.padding(top = topPadding), ) } Loading Loading @@ -675,6 +677,14 @@ private fun shouldUseLockscreenStackBounds(state: TransitionState): Boolean { return state is TransitionState.Idle && state.currentScene == Scenes.Lockscreen } private fun shouldUseLockscreenHunBounds(state: TransitionState): Boolean { return when (state) { is TransitionState.Idle -> state.currentScene == Scenes.Lockscreen is TransitionState.Transition -> state.isTransitioning(from = Scenes.QuickSettings, to = Scenes.Lockscreen) } } private fun shouldAnimateScrimCornerRadius( state: SceneTransitionLayoutState, shouldPunchHoleBehindScrim: Boolean, Loading packages/SystemUI/compose/features/src/com/android/systemui/scene/ui/composable/SceneContainerTransitions.kt +1 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ val SceneContainerTransitions = transitions { from(Scenes.Shade, to = Scenes.Lockscreen) { reversed { lockscreenToShadeTransition() } sharedElement(Notifications.Elements.NotificationStackPlaceholder, enabled = false) sharedElement(Notifications.Elements.HeadsUpNotificationPlaceholder, enabled = false) } // Overlay transitions Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/Notifications.kt +10 −0 Original line number Diff line number Diff line Loading @@ -259,6 +259,7 @@ fun SceneScope.ConstrainedNotificationStack( HeadsUpNotificationSpace( stackScrollView = stackScrollView, viewModel = viewModel, useHunBounds = { shouldUseLockscreenHunBounds(layoutState.transitionState) }, modifier = Modifier.align(Alignment.TopCenter), ) NotificationStackCutoffGuideline( Loading Loading @@ -541,6 +542,7 @@ fun SceneScope.NotificationScrollingStack( HeadsUpNotificationSpace( stackScrollView = stackScrollView, viewModel = viewModel, useHunBounds = { !shouldUseLockscreenHunBounds(layoutState.transitionState) }, modifier = Modifier.padding(top = topPadding), ) } Loading Loading @@ -675,6 +677,14 @@ private fun shouldUseLockscreenStackBounds(state: TransitionState): Boolean { return state is TransitionState.Idle && state.currentScene == Scenes.Lockscreen } private fun shouldUseLockscreenHunBounds(state: TransitionState): Boolean { return when (state) { is TransitionState.Idle -> state.currentScene == Scenes.Lockscreen is TransitionState.Transition -> state.isTransitioning(from = Scenes.QuickSettings, to = Scenes.Lockscreen) } } private fun shouldAnimateScrimCornerRadius( state: SceneTransitionLayoutState, shouldPunchHoleBehindScrim: Boolean, Loading
packages/SystemUI/compose/features/src/com/android/systemui/scene/ui/composable/SceneContainerTransitions.kt +1 −0 Original line number Diff line number Diff line Loading @@ -85,6 +85,7 @@ val SceneContainerTransitions = transitions { from(Scenes.Shade, to = Scenes.Lockscreen) { reversed { lockscreenToShadeTransition() } sharedElement(Notifications.Elements.NotificationStackPlaceholder, enabled = false) sharedElement(Notifications.Elements.HeadsUpNotificationPlaceholder, enabled = false) } // Overlay transitions Loading