changes the action title to Send...

This commit is contained in:
Tom Hennen 2015-09-09 17:23:53 -04:00
parent 00b1badb3f
commit 159f1f6dcc
2 changed files with 5 additions and 3 deletions

View File

@ -96,14 +96,15 @@ public class OpmlExportWorker extends AsyncTask<Void, Void, Void> {
alert.setMessage(context
.getString(R.string.opml_export_success_sum)
+ output.toString())
.setPositiveButton(R.string.share_label, (dialog, which) -> {
.setPositiveButton(R.string.send_label, (dialog, which) -> {
Uri outputUri = Uri.fromFile(output);
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "OPML Export");
sendIntent.putExtra(Intent.EXTRA_SUBJECT,
context.getResources().getText(R.string.opml_export_label));
sendIntent.putExtra(Intent.EXTRA_STREAM, outputUri);
sendIntent.setType("text/plain");
context.startActivity(Intent.createChooser(sendIntent,
context.getResources().getText(R.string.share_label)));
context.getResources().getText(R.string.send_label)));
});
}
alert.create().show();

View File

@ -84,6 +84,7 @@
<string name="feed_auto_download_global">Global</string>
<string name="feed_auto_download_always">Always</string>
<string name="feed_auto_download_never">Never</string>
<string name="send_label">Send...</string>
<!-- 'Add Feed' Activity labels -->
<string name="feedurl_label">Feed URL</string>