Merge "Cast copied text to string before sending share intent" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
333f81af88
@@ -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