diff options
| -rw-r--r-- | core/java/android/app/Notification.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 35308ee43dea..1b59394c562e 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -4421,8 +4421,7 @@ public class Notification implements Parcelable * notification) out of the actions in this notification. */ public @NonNull List<Notification.Action> getContextualActions() { - if (actions == null) return Collections.emptyList(); - + if (actions == null || isPromotedOngoing()) return Collections.emptyList(); List<Notification.Action> contextualActions = new ArrayList<>(); for (Notification.Action action : actions) { if (action.isContextual()) { |