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

Commit ead9971b authored by Stevie Kideckel's avatar Stevie Kideckel Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14934051

Change-Id: I3a6587a69610e6cab44aea2c30b29963b6da9462
parents dacd0179 cf30f5da
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);