Loading packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/Notifications.kt +1 −0 Original line number Diff line number Diff line Loading @@ -198,6 +198,7 @@ fun SceneScope.SnoozeableHeadsUpNotificationSpace( LaunchedEffect(scrollableState.isScrollInProgress) { if (!scrollableState.isScrollInProgress && scrollOffset <= minScrollOffset) { viewModel.setHeadsUpAnimatingAway(false) viewModel.snoozeHun() } } Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +2 −2 Original line number Diff line number Diff line Loading @@ -3519,7 +3519,7 @@ public class NotificationStackScrollLayout // Only when scene container is enabled, mark that we are being dragged so that we start // dispatching the rest of the gesture to scene container. void startOverscrollAfterExpanding() { SceneContainerFlag.isUnexpectedlyInLegacyMode(); if (SceneContainerFlag.isUnexpectedlyInLegacyMode()) return; getExpandHelper().finishExpanding(); setIsBeingDragged(true); } Loading @@ -3527,7 +3527,7 @@ public class NotificationStackScrollLayout // Only when scene container is enabled, mark that we are being dragged so that we start // dispatching the rest of the gesture to scene container. void startDraggingOnHun() { SceneContainerFlag.isUnexpectedlyInLegacyMode(); if (SceneContainerFlag.isUnexpectedlyInLegacyMode()) return; setIsBeingDragged(true); } Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +1 −0 Original line number Diff line number Diff line Loading @@ -2034,6 +2034,7 @@ public class NotificationStackScrollLayoutController implements Dumpable { hunWantsIt = mHeadsUpTouchHelper.onInterceptTouchEvent(ev); if (hunWantsIt) { mView.startDraggingOnHun(); mHeadsUpManager.unpinAll(true); } } boolean swipeWantsIt = false; Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationsPlaceholderViewModel.kt +5 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,11 @@ constructor( interactor.setScrolledToTop(scrolledToTop) } /** Sets whether the heads up notification is animating away. */ fun setHeadsUpAnimatingAway(animatingAway: Boolean) { headsUpNotificationInteractor.setHeadsUpAnimatingAway(animatingAway) } /** Snooze the currently pinned HUN. */ fun snoozeHun() { headsUpNotificationInteractor.snooze() Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpTouchHelper.java +0 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,6 @@ public class HeadsUpTouchHelper implements Gefingerpoken { mPanel.setHeadsUpDraggingStartingHeight(startHeight); mPanel.startExpand(x, y, true /* startTracking */, startHeight); // TODO(b/340514839): Figure out where to move this side effect in flexiglass if (!SceneContainerFlag.isEnabled()) { // This call needs to be after the expansion start otherwise we will get a // flicker of one frame as it's not expanded yet. Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/Notifications.kt +1 −0 Original line number Diff line number Diff line Loading @@ -198,6 +198,7 @@ fun SceneScope.SnoozeableHeadsUpNotificationSpace( LaunchedEffect(scrollableState.isScrollInProgress) { if (!scrollableState.isScrollInProgress && scrollOffset <= minScrollOffset) { viewModel.setHeadsUpAnimatingAway(false) viewModel.snoozeHun() } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +2 −2 Original line number Diff line number Diff line Loading @@ -3519,7 +3519,7 @@ public class NotificationStackScrollLayout // Only when scene container is enabled, mark that we are being dragged so that we start // dispatching the rest of the gesture to scene container. void startOverscrollAfterExpanding() { SceneContainerFlag.isUnexpectedlyInLegacyMode(); if (SceneContainerFlag.isUnexpectedlyInLegacyMode()) return; getExpandHelper().finishExpanding(); setIsBeingDragged(true); } Loading @@ -3527,7 +3527,7 @@ public class NotificationStackScrollLayout // Only when scene container is enabled, mark that we are being dragged so that we start // dispatching the rest of the gesture to scene container. void startDraggingOnHun() { SceneContainerFlag.isUnexpectedlyInLegacyMode(); if (SceneContainerFlag.isUnexpectedlyInLegacyMode()) return; setIsBeingDragged(true); } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +1 −0 Original line number Diff line number Diff line Loading @@ -2034,6 +2034,7 @@ public class NotificationStackScrollLayoutController implements Dumpable { hunWantsIt = mHeadsUpTouchHelper.onInterceptTouchEvent(ev); if (hunWantsIt) { mView.startDraggingOnHun(); mHeadsUpManager.unpinAll(true); } } boolean swipeWantsIt = false; Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/viewmodel/NotificationsPlaceholderViewModel.kt +5 −0 Original line number Diff line number Diff line Loading @@ -110,6 +110,11 @@ constructor( interactor.setScrolledToTop(scrolledToTop) } /** Sets whether the heads up notification is animating away. */ fun setHeadsUpAnimatingAway(animatingAway: Boolean) { headsUpNotificationInteractor.setHeadsUpAnimatingAway(animatingAway) } /** Snooze the currently pinned HUN. */ fun snoozeHun() { headsUpNotificationInteractor.snooze() Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/HeadsUpTouchHelper.java +0 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,6 @@ public class HeadsUpTouchHelper implements Gefingerpoken { mPanel.setHeadsUpDraggingStartingHeight(startHeight); mPanel.startExpand(x, y, true /* startTracking */, startHeight); // TODO(b/340514839): Figure out where to move this side effect in flexiglass if (!SceneContainerFlag.isEnabled()) { // This call needs to be after the expansion start otherwise we will get a // flicker of one frame as it's not expanded yet. Loading