diff options
author | Tom Hennen <TomHennen@users.noreply.github.com> | 2016-01-26 17:36:02 -0500 |
---|---|---|
committer | Tom Hennen <TomHennen@users.noreply.github.com> | 2016-01-26 17:36:02 -0500 |
commit | f71f1a5452c5d9e286687444fc3865d03eb3ad00 (patch) | |
tree | 8867717213b4b852f94ff8be563e27b5ff3f62df | |
parent | b2a8e06ff8af727e5f21cfc3c110402c3753ab3c (diff) | |
parent | b8e696e6fc81d900623f6b1c5dbf03caad4bc7a3 (diff) | |
download | AntennaPod-f71f1a5452c5d9e286687444fc3865d03eb3ad00.zip |
Merge pull request #1617 from mfietz/crash_report_hint
Crash report via email: Hint at adding some description
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java index 083ac5202..785944768 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java @@ -397,12 +397,11 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc ui.findPreference("prefSendCrashReport").setOnPreferenceClickListener(preference -> { Intent emailIntent = new Intent(Intent.ACTION_SEND); emailIntent.setType("text/plain"); - String to[] = { "Martin.Fietz@gmail.com" }; - emailIntent .putExtra(Intent.EXTRA_EMAIL, to); + emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[]{"Martin.Fietz@gmail.com"}); + emailIntent.putExtra(Intent.EXTRA_SUBJECT, "AntennaPod Crash Report"); + emailIntent.putExtra(Intent.EXTRA_TEXT, "Please describe what you were doing when the app crashed"); // the attachment - emailIntent .putExtra(Intent.EXTRA_STREAM, Uri.fromFile(CrashReportWriter.getFile())); - // the mail subject - emailIntent .putExtra(Intent.EXTRA_SUBJECT, "AntennaPod Crash Report"); + emailIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(CrashReportWriter.getFile())); String intentTitle = ui.getActivity().getString(R.string.send_email); ui.getActivity().startActivity(Intent.createChooser(emailIntent, intentTitle)); return true; |