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

Commit cf30f5da authored by Stevie Kideckel's avatar Stevie Kideckel Committed by Android (Google) Code Review
Browse files

Merge "Ensure that the RemoteResponse is not empty before acting on it" into sc-dev

parents 893eb120 b72cf990
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -814,7 +814,9 @@ public class RemoteViews implements Parcelable, Filter {
                // The PendingIntent template is stored in the view's tag.
                OnItemClickListener listener = (parent, view, position, id) -> {
                    RemoteResponse response = findRemoteResponseTag(view);
                    if (response != null) {
                        response.handleViewInteraction(view, handler);
                    }
                };
                av.setOnItemClickListener(listener);
                av.setTag(pendingIntentTemplate);