From 52991c49f8973c7acb6e35b113bedf3f5b4bbe35 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Thu, 13 Dec 2018 19:24:17 +0100 Subject: [PATCH] ErrorReporter: Move report email from string resources to Constants. --- oeffi/res/values/strings_untranslated.xml | 1 - oeffi/src/de/schildbach/oeffi/Constants.java | 2 ++ oeffi/src/de/schildbach/oeffi/util/ErrorReporter.java | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oeffi/res/values/strings_untranslated.xml b/oeffi/res/values/strings_untranslated.xml index a7815ab..a05e0cb 100644 --- a/oeffi/res/values/strings_untranslated.xml +++ b/oeffi/res/values/strings_untranslated.xml @@ -6,6 +6,5 @@ Oeffi Crash Report Oeffi Bug Report - oeffi.app@gmail.com \ No newline at end of file diff --git a/oeffi/src/de/schildbach/oeffi/Constants.java b/oeffi/src/de/schildbach/oeffi/Constants.java index f60361c..c6e97f0 100644 --- a/oeffi/src/de/schildbach/oeffi/Constants.java +++ b/oeffi/src/de/schildbach/oeffi/Constants.java @@ -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 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 int LOCATION_UPDATE_DISTANCE = 3; public static final long LOCATION_TIMEOUT_MS = 2 * DateUtils.MINUTE_IN_MILLIS; diff --git a/oeffi/src/de/schildbach/oeffi/util/ErrorReporter.java b/oeffi/src/de/schildbach/oeffi/util/ErrorReporter.java index 37a33a0..b6f25c9 100644 --- a/oeffi/src/de/schildbach/oeffi/util/ErrorReporter.java +++ b/oeffi/src/de/schildbach/oeffi/util/ErrorReporter.java @@ -251,8 +251,7 @@ public class ErrorReporter implements Thread.UncaughtExceptionHandler { intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, attachments); } - final String email = context.getString(R.string.error_reporter_mail_recipient); - intent.putExtra(Intent.EXTRA_EMAIL, new String[] { email }); + intent.putExtra(Intent.EXTRA_EMAIL, new String[] { Constants.REPORT_EMAIL }); intent.putExtra(Intent.EXTRA_TEXT, report.toString()); intent.putExtra(Intent.EXTRA_SUBJECT, subject);