Merge "Tell the app that a smart reply was used even when it has been edited."
This commit is contained in:
committed by
Android (Google) Code Review
commit
2c49d1233b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user