Skip to content

Commit

Permalink
Update crash report and support mail address
Browse files Browse the repository at this point in the history
  • Loading branch information
cemrich committed Sep 17, 2024
1 parent 24cbe53 commit f324c4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/config.xml
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>

Expand Down

0 comments on commit f324c4b

Please sign in to comment.