Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23ee7594 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz Committed by Android (Google) Code Review
Browse files

Merge "Ignore RemoteInput actions for RONs" into main

parents 620abe8b b817d15d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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);
                }