use intent.createchooser to share text

This commit is contained in:
Andrew Dolgov 2016-02-23 12:10:30 +03:00
parent 74f09f2f5f
commit 0d37d7cd2d
2 changed files with 4 additions and 4 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.fox.ttrss"
android:versionCode="401"
android:versionName="1.169" >
android:versionCode="402"
android:versionName="1.170" >
<uses-sdk
android:minSdkVersion="16"

View File

@ -280,11 +280,11 @@ public class CommonActivity extends ActionBarActivity implements SharedPreferenc
}
protected void shareText(String text) {
startActivity(getShareIntent(text, null));
startActivity(Intent.createChooser(getShareIntent(text, null), text));
}
protected void shareText(String text, String subject) {
startActivity(getShareIntent(text, subject));
startActivity(Intent.createChooser(getShareIntent(text, subject), text));
}
private void openUriWithCustomTab(Uri uri) {