Fix wording on crash reporter

This commit is contained in:
Aleksandras Kostarevas 2024-04-09 14:37:18 -05:00
parent 5460d69669
commit a4bf434ff8
2 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<string name="crashed_text">FUTO Keyboard has crashed! Please email us a report to help us fix this (voiceinput@futo.org)</string> <string name="crashed_text_email">FUTO Keyboard has crashed! Please email us a report to help us fix this (voiceinput@futo.org)</string>
<string name="crashed_text">FUTO Keyboard has crashed! Please send a report to help us fix this.</string>
<string name="crashed_title">Crash Reporter</string> <string name="crashed_title">Crash Reporter</string>
<string name="crash_report_accept">Send Report</string> <string name="crash_report_accept">Send Report</string>

View File

@ -17,7 +17,13 @@ class CrashLoggingApplication : Application() {
reportFormat = StringFormat.JSON reportFormat = StringFormat.JSON
dialog { dialog {
text = getString(R.string.crashed_text) text = getString(
if(BuildConfig.ENABLE_ACRA) {
R.string.crashed_text
} else {
R.string.crashed_text_email
}
)
title = getString(R.string.crashed_title) title = getString(R.string.crashed_title)
positiveButtonText = getString(R.string.crash_report_accept) positiveButtonText = getString(R.string.crash_report_accept)
negativeButtonText = getString(R.string.crash_report_reject) negativeButtonText = getString(R.string.crash_report_reject)