Sharing apps now has a better plaintext structure

SUBJECT: "Android App: [name]"
TEXT: "[name] ([summary]) - [link]"
This commit is contained in:
Daniel Martí 2013-07-22 16:57:24 +02:00
parent ff0f3a27f9
commit 38c0ae1972

View File

@ -775,8 +775,8 @@ public class AppDetails extends ListActivity {
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, app.name);
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, "https://f-droid.org/app/"+app.id);
shareIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Android App: "+app.name);
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, app.name+" ("+app.summary+") - https://f-droid.org/app/"+app.id);
startActivity(Intent.createChooser(shareIntent, getString(R.string.menu_share)));
}