Merge "Cast copied text to string before sending share intent" into tm-dev am: 333f81af88
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17572741 Change-Id: I76df07f90893d0c6bcd9b73259a286e44c6e28e6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -95,7 +95,7 @@ public class EditTextActivity extends Activity
|
||||
private void share() {
|
||||
Intent sendIntent = new Intent();
|
||||
sendIntent.setAction(Intent.ACTION_SEND);
|
||||
sendIntent.putExtra(Intent.EXTRA_TEXT, mEditText.getText());
|
||||
sendIntent.putExtra(Intent.EXTRA_TEXT, mEditText.getText().toString());
|
||||
sendIntent.setType("text/plain");
|
||||
|
||||
Intent shareIntent = Intent.createChooser(sendIntent, null);
|
||||
|
||||
Reference in New Issue
Block a user