Fix crash reporter initially showing exceptions

This commit is contained in:
MM20 2022-09-04 12:17:04 +02:00
parent 57449d4fce
commit f7899f9e39
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -29,7 +29,7 @@ class CrashReporterScreenVM: ViewModel() {
}
}
val showExceptions = MutableLiveData(BuildConfig.DEBUG)
val showExceptions = MutableLiveData(false)
val showCrashes = MutableLiveData(true)
val reports = MutableLiveData<List<CrashReport>?>(null)
@ -39,6 +39,7 @@ class CrashReporterScreenVM: ViewModel() {
viewModelScope.launch {
_reports = CrashReporter.getCrashReports()
reports.value = _reports
setShowExceptions(BuildConfig.DEBUG)
}
}