ErrorReporter: Move report email from string resources to Constants.

This commit is contained in:
Andreas Schildbach 2018-12-13 19:24:17 +01:00
parent 37700f49d3
commit 52991c49f8
3 changed files with 3 additions and 3 deletions

View file

@ -6,6 +6,5 @@
<!-- error reporter --> <!-- error reporter -->
<string name="error_reporter_crash_mail_subject">Oeffi Crash Report</string> <string name="error_reporter_crash_mail_subject">Oeffi Crash Report</string>
<string name="error_reporter_bug_mail_subject">Oeffi Bug Report</string> <string name="error_reporter_bug_mail_subject">Oeffi Bug Report</string>
<string name="error_reporter_mail_recipient">oeffi.app@gmail.com</string>
</resources> </resources>

View file

@ -39,6 +39,8 @@ public class Constants {
public static final String GOOGLE_PLAY_APP_URL = "https://play.google.com/store/apps/details?id=%s"; public static final String GOOGLE_PLAY_APP_URL = "https://play.google.com/store/apps/details?id=%s";
public static final String BITCOIN_ADDRESS = "1PW21MuBgPnjfUQriwK7TnRADFotEhdysr"; public static final String BITCOIN_ADDRESS = "1PW21MuBgPnjfUQriwK7TnRADFotEhdysr";
public static final String REPORT_EMAIL = "oeffi.app@gmail.com";
public static final long LOCATION_UPDATE_FREQ_MS = 10 * DateUtils.SECOND_IN_MILLIS; public static final long LOCATION_UPDATE_FREQ_MS = 10 * DateUtils.SECOND_IN_MILLIS;
public static final int LOCATION_UPDATE_DISTANCE = 3; public static final int LOCATION_UPDATE_DISTANCE = 3;
public static final long LOCATION_TIMEOUT_MS = 2 * DateUtils.MINUTE_IN_MILLIS; public static final long LOCATION_TIMEOUT_MS = 2 * DateUtils.MINUTE_IN_MILLIS;

View file

@ -251,8 +251,7 @@ public class ErrorReporter implements Thread.UncaughtExceptionHandler {
intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, attachments); intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, attachments);
} }
final String email = context.getString(R.string.error_reporter_mail_recipient); intent.putExtra(Intent.EXTRA_EMAIL, new String[] { Constants.REPORT_EMAIL });
intent.putExtra(Intent.EXTRA_EMAIL, new String[] { email });
intent.putExtra(Intent.EXTRA_TEXT, report.toString()); intent.putExtra(Intent.EXTRA_TEXT, report.toString());
intent.putExtra(Intent.EXTRA_SUBJECT, subject); intent.putExtra(Intent.EXTRA_SUBJECT, subject);