Loading packages/SystemUI/aconfig/systemui.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -2179,3 +2179,13 @@ flag { purpose: PURPOSE_BUGFIX } } flag { name: "skip_cancelling_huns_for_guts" namespace: "systemui" description: "Do not cancel HUNs when GUTs are exposed" bug: "372227464" metadata { purpose: PURPOSE_BUGFIX } } No newline at end of file packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +16 −5 Original line number Diff line number Diff line Loading @@ -668,11 +668,7 @@ public class NotificationStackScrollLayoutController implements Dumpable { public void onChildSnappedBack(View animView, float targetLeft) { mView.onSwipeEnd(); if (animView instanceof ExpandableNotificationRow row) { boolean cannotFullScreen = NotificationBundleUi.isEnabled() ? !row.getEntryAdapter().isFullScreenCapable() : (row.getEntryLegacy().getSbn().getNotification().fullScreenIntent == null); if (row.isPinned() && !canChildBeDismissed(row) && cannotFullScreen) { if (canHeadsUpBeCancelled(row)) { mHeadsUpManager.removeNotification( row.getKey(), /* removeImmediately= */ true, Loading @@ -682,6 +678,21 @@ public class NotificationStackScrollLayoutController implements Dumpable { } } private boolean canHeadsUpBeCancelled(ExpandableNotificationRow row) { final boolean areGutsNotExposed = !Flags.skipCancellingHunsForGuts() || !row.areGutsExposed(); final boolean cannotFullScreen = NotificationBundleUi.isEnabled() ? !row.getEntryAdapter().isFullScreenCapable() : (row.getEntryLegacy().getSbn().getNotification().fullScreenIntent == null); return row.isPinned() && !canChildBeDismissed(row) && cannotFullScreen && areGutsNotExposed; } @Override public boolean updateSwipeProgress(View animView, boolean dismissable, float swipeProgress) { Loading Loading
packages/SystemUI/aconfig/systemui.aconfig +10 −0 Original line number Diff line number Diff line Loading @@ -2179,3 +2179,13 @@ flag { purpose: PURPOSE_BUGFIX } } flag { name: "skip_cancelling_huns_for_guts" namespace: "systemui" description: "Do not cancel HUNs when GUTs are exposed" bug: "372227464" metadata { purpose: PURPOSE_BUGFIX } } No newline at end of file
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayoutController.java +16 −5 Original line number Diff line number Diff line Loading @@ -668,11 +668,7 @@ public class NotificationStackScrollLayoutController implements Dumpable { public void onChildSnappedBack(View animView, float targetLeft) { mView.onSwipeEnd(); if (animView instanceof ExpandableNotificationRow row) { boolean cannotFullScreen = NotificationBundleUi.isEnabled() ? !row.getEntryAdapter().isFullScreenCapable() : (row.getEntryLegacy().getSbn().getNotification().fullScreenIntent == null); if (row.isPinned() && !canChildBeDismissed(row) && cannotFullScreen) { if (canHeadsUpBeCancelled(row)) { mHeadsUpManager.removeNotification( row.getKey(), /* removeImmediately= */ true, Loading @@ -682,6 +678,21 @@ public class NotificationStackScrollLayoutController implements Dumpable { } } private boolean canHeadsUpBeCancelled(ExpandableNotificationRow row) { final boolean areGutsNotExposed = !Flags.skipCancellingHunsForGuts() || !row.areGutsExposed(); final boolean cannotFullScreen = NotificationBundleUi.isEnabled() ? !row.getEntryAdapter().isFullScreenCapable() : (row.getEntryLegacy().getSbn().getNotification().fullScreenIntent == null); return row.isPinned() && !canChildBeDismissed(row) && cannotFullScreen && areGutsNotExposed; } @Override public boolean updateSwipeProgress(View animView, boolean dismissable, float swipeProgress) { Loading