diff options
| author | 2025-01-23 07:13:30 -0800 | |
|---|---|---|
| committer | 2025-01-23 07:13:30 -0800 | |
| commit | 23ee7594e599a3d448924f3e92b77091b829b88a (patch) | |
| tree | 521b620a8e585a8fecbf0a35a07563c0b76051ab | |
| parent | 620abe8ba07b77cc5aa178ab2c60b16e4116a80e (diff) | |
| parent | b817d15d4c9e46cd571455b76b7cb2c65748cb23 (diff) | |
Merge "Ignore RemoteInput actions for RONs" into main
| -rw-r--r-- | core/java/android/app/Notification.java | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index fcb817ede6b3..35308ee43dea 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -4393,6 +4393,9 @@ public class Notification implements Parcelable       */      @Nullable      public Pair<RemoteInput, Action> findRemoteInputActionPair(boolean requiresFreeform) { +        if (isPromotedOngoing()) { +            return null; +        }          if (actions == null) {              return null;          } @@ -6454,6 +6457,11 @@ public class Notification implements Parcelable              if (mActions == null) return Collections.emptyList();              List<Notification.Action> standardActions = new ArrayList<>();              for (Notification.Action action : mActions) { +                // Actions with RemoteInput are ignored for RONs. +                if (mN.isPromotedOngoing() +                        && hasValidRemoteInput(action)) { +                    continue; +                }                  if (!action.isContextual()) {                      standardActions.add(action);                  } |