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

Commit 74916851 authored by Pinyao Ting's avatar Pinyao Ting
Browse files

Passing meatadata from RemoteComposeDocument back to sender upon user interaction.

Bug: 339721781
Change-Id: Ibdec2bb215c46819f2928e6ac2f896ffb974ab99
Test: manual
Flag: EXEMPT bugfix
parent 48b4b671
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -5820,8 +5820,13 @@ public class RemoteViews implements Parcelable, Filter {
                        mActions.forEach(action -> {
                            if (viewId == action.mViewId
                                    && action instanceof SetOnClickResponse setOnClickResponse) {
                                setOnClickResponse.mResponse.handleViewInteraction(
                                        player, params.handler);
                                final RemoteResponse response = setOnClickResponse.mResponse;
                                if (response.mFillIntent == null) {
                                    response.mFillIntent = new Intent();
                                }
                                response.mFillIntent.putExtra(
                                        "remotecompose_metadata", metadata);
                                response.handleViewInteraction(player, params.handler);
                            }
                        });
                    });