Fix crash reporter initially showing exceptions
This commit is contained in:
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 showCrashes = MutableLiveData(true)
|
||||||
|
|
||||||
val reports = MutableLiveData<List<CrashReport>?>(null)
|
val reports = MutableLiveData<List<CrashReport>?>(null)
|
||||||
@ -39,6 +39,7 @@ class CrashReporterScreenVM: ViewModel() {
|
|||||||
viewModelScope.launch {
|
viewModelScope.launch {
|
||||||
_reports = CrashReporter.getCrashReports()
|
_reports = CrashReporter.getCrashReports()
|
||||||
reports.value = _reports
|
reports.value = _reports
|
||||||
|
setShowExceptions(BuildConfig.DEBUG)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user