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

Commit 2c49d123 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Tell the app that a smart reply was used even when it has been edited."

parents 3666811d f29f2d4a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -146,7 +146,11 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
        Intent fillInIntent = new Intent().addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        RemoteInput.addResultsToIntent(mRemoteInputs, fillInIntent,
                results);
        if (mEntry.editedSuggestionInfo == null) {
            RemoteInput.setResultsSource(fillInIntent, RemoteInput.SOURCE_FREE_FORM_INPUT);
        } else {
            RemoteInput.setResultsSource(fillInIntent, RemoteInput.SOURCE_CHOICE);
        }

        mEditText.setEnabled(false);
        mSendButton.setVisibility(INVISIBLE);