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

This commit is contained in:
TreeHugger Robot
2019-04-03 14:07:39 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
RemoteInput.setResultsSource(fillInIntent, RemoteInput.SOURCE_FREE_FORM_INPUT);
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);