-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update crash report and support mail address
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,18 +64,18 @@ abstract class ZappApplicationBase : Application() { | |
} | ||
} | ||
|
||
override fun attachBaseContext(base: Context?) { | ||
override fun attachBaseContext(base: Context) { | ||
super.attachBaseContext(base) | ||
|
||
if (Thread.getDefaultUncaughtExceptionHandler() != null) { | ||
// exclude test environments | ||
setUpCrashReporting() | ||
setUpCrashReporting(base) | ||
} | ||
} | ||
|
||
protected abstract fun setUpLogging() | ||
|
||
private fun setUpCrashReporting() { | ||
private fun setUpCrashReporting(context: Context) { | ||
val useLeanbackDialog = resources.getBoolean(R.bool.is_leanback_ui) | ||
val useAppDialog = !useLeanbackDialog | ||
|
||
|
@@ -125,7 +125,7 @@ abstract class ZappApplicationBase : Application() { | |
} | ||
|
||
mailSender { | ||
mailTo = "Zapp Entwicklung <[email protected]>" | ||
mailTo = "Zapp Entwicklung <${context.getString(R.string.support_mail)}>" | ||
subject = getString(R.string.error_app_crash_mail_subject) | ||
body = getString(R.string.error_app_crash_mail_body) | ||
reportAsFile = false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="support_mail" translatable="false">[email protected]</string> | ||
<string name="support_mail" translatable="false">[email protected]</string> | ||
<string name="zapp_backend_url" translatable="false">https://api.zapp.mediathekview.de/v1/</string> | ||
<string name="mediathek_backend_url" translatable="false">https://mediathekviewweb.de/api/</string> | ||
|
||
|