Fix crash reporter initially showing exceptions

This commit is contained in:
MM20
2022-09-04 12:17:04 +02:00
parent 57449d4fce
commit f7899f9e39
@@ -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)
}
}