diff options
author | Tom Hennen <tom.hennen@gmail.com> | 2015-09-07 20:43:53 -0400 |
---|---|---|
committer | Tom Hennen <tom.hennen@gmail.com> | 2015-09-07 20:43:53 -0400 |
commit | 00b1badb3f965c68f48e7660f767e495a9773e92 (patch) | |
tree | 1b538d4d79593cbe0c0cdd918786e65916a96356 /app/src/main | |
parent | de879e1dd92f74fce89b92c0d1e9744135d91128 (diff) | |
download | AntennaPod-00b1badb3f965c68f48e7660f767e495a9773e92.zip |
use lambda
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/asynctask/OpmlExportWorker.java | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/asynctask/OpmlExportWorker.java b/app/src/main/java/de/danoeh/antennapod/asynctask/OpmlExportWorker.java index cd683de23..685004410 100644 --- a/app/src/main/java/de/danoeh/antennapod/asynctask/OpmlExportWorker.java +++ b/app/src/main/java/de/danoeh/antennapod/asynctask/OpmlExportWorker.java @@ -96,15 +96,14 @@ 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, new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) {Uri outputUri = Uri.fromFile(output); - Intent sendIntent = new Intent(Intent.ACTION_SEND); - sendIntent.putExtra(Intent.EXTRA_SUBJECT, "OPML Export"); - sendIntent.putExtra(Intent.EXTRA_STREAM, outputUri); - sendIntent.setType("text/plain"); - context.startActivity(Intent.createChooser(sendIntent, context.getResources().getText(R.string.share_label))); - } + .setPositiveButton(R.string.share_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_STREAM, outputUri); + sendIntent.setType("text/plain"); + context.startActivity(Intent.createChooser(sendIntent, + context.getResources().getText(R.string.share_label))); }); } alert.create().show(); |