Tweak bug report screen for internal builds

I always get confused by the missing switch, so just disable it instead
of hiding.

Change-Id: I894be7dd9d5e50e793960f16ee8b04df20effc41
This commit is contained in:
SpiritCroc 2023-03-27 11:53:58 +02:00
parent 236c44a5a5
commit cf7a93b5bb
1 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,8 @@ class BugReportActivity :
.allowBack()
setupViews()
views.bugReportButtonContactMe.isVisible = !isInternalBuild()
// Don't allow toggling this for internal builds... internal testers are well-known and may always be contacted!
views.bugReportButtonContactMe.isEnabled = !isInternalBuild()
if (bugReporter.screenshot != null) {
views.bugReportScreenshotPreview.setImageBitmap(bugReporter.screenshot)
@ -182,7 +183,7 @@ class BugReportActivity :
views.bugReportButtonIncludeScreenshot.isChecked,
views.bugReportEditText.text.toString(),
state.serverVersion,
views.bugReportButtonContactMe.isChecked && views.bugReportButtonContactMe.isVisible,
views.bugReportButtonContactMe.isChecked && views.bugReportButtonContactMe.isVisible && views.bugReportButtonContactMe.isEnabled,
null,
object : BugReporter.IMXBugReportListener {
override fun onUploadFailed(reason: String?) {