Crash reporter: Hide exceptions initially production builds

This commit is contained in:
MM20 2022-06-12 19:39:06 +02:00
parent 0b22b70153
commit 79ee848772
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -4,6 +4,7 @@ import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import androidx.lifecycle.viewModelScope
import de.mm20.launcher2.crashreporter.BuildConfig
import de.mm20.launcher2.crashreporter.CrashReport
import de.mm20.launcher2.crashreporter.CrashReportType
import de.mm20.launcher2.crashreporter.CrashReporter
@ -29,7 +30,7 @@ class CrashReporterScreenVM: ViewModel() {
}
}
val showExceptions = MutableLiveData(true)
val showExceptions = MutableLiveData(BuildConfig.DEBUG)
val showCrashes = MutableLiveData(true)
val reports = MutableLiveData<List<CrashReport>?>(null)