From e8440e0e0d5ea4512551d47a62bb786cc3b82387 Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sun, 27 Dec 2020 21:45:34 -0500 Subject: [PATCH] chore --- .../instagrabber/fragments/settings/AboutFragment.java | 7 ++++--- app/src/main/java/awaisomereport/CrashReporter.java | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/fragments/settings/AboutFragment.java b/app/src/main/java/awais/instagrabber/fragments/settings/AboutFragment.java index 682de804..3475d12c 100644 --- a/app/src/main/java/awais/instagrabber/fragments/settings/AboutFragment.java +++ b/app/src/main/java/awais/instagrabber/fragments/settings/AboutFragment.java @@ -88,9 +88,10 @@ public class AboutFragment extends BasePreferencesFragment { preference.setSummary(R.string.about_feedback_summary); preference.setIconSpaceReserved(false); preference.setOnPreferenceClickListener(p -> { - final Intent intent = new Intent(Intent.ACTION_SENDTO); - intent.setData(Uri.parse(getString(R.string.about_feedback_summary) - + "?body=Please%20note%20that%20your%20email%20address%20and%20the%20entire%20content%20will%20be%20published%20onto%20GitHub%20issues.%20If%20you%20do%20not%20wish%20to%20do%20that%2C%20use%20other%20contact%20methods%20instead.")); + final Intent intent = new Intent(Intent.ACTION_SEND); + intent.setType("message/rfc822") + .putExtra(Intent.EXTRA_EMAIL, getString(R.string.feedback_summary)) + .putExtra(Intent.EXTRA_TEXT, "Please note that your email address and the entire content will be published onto GitHub issues. If you do not wish to do that, use other contact methods instead.") if (intent.resolveActivity(context.getPackageManager()) != null) startActivity(intent); return true; }); diff --git a/app/src/main/java/awaisomereport/CrashReporter.java b/app/src/main/java/awaisomereport/CrashReporter.java index 93e5b0f0..d538bb4c 100755 --- a/app/src/main/java/awaisomereport/CrashReporter.java +++ b/app/src/main/java/awaisomereport/CrashReporter.java @@ -54,7 +54,7 @@ public final class CrashReporter implements Thread.UncaughtExceptionHandler { public void uncaughtException(@NonNull final Thread t, @NonNull final Throwable exception) { final StringBuilder reportBuilder = new StringBuilder(); reportBuilder.append("IMPORTANT: If sending by email, your email address and the entire content will be made public on GitHub issues."); - reportBuilder.append("IMPORTANT: When possible, please describe the steps leading to this crash. Thank you for your cooperation."); + reportBuilder.append("\r\nIMPORTANT: When possible, please describe the steps leading to this crash. Thank you for your cooperation."); reportBuilder.append("\r\n\r\nError report collected on: ").append(new Date().toString()); reportBuilder