mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 20:10:04 +03:00
Set PREFS_CRASH_KEY synchronously
Sometimes the app dies before this preference gets written to disk, and then the crash dialog is not displayed to the user Signed-off-by: Alex Baker <alex@beeper.com>
This commit is contained in:
parent
e71063222b
commit
a4b50d2a78
2 changed files with 2 additions and 1 deletions
1
changelog.d/5195.bugfix
Normal file
1
changelog.d/5195.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Reliably display crash report prompt
|
|
@ -63,7 +63,7 @@ class VectorUncaughtExceptionHandler @Inject constructor(
|
|||
*/
|
||||
override fun uncaughtException(thread: Thread, throwable: Throwable) {
|
||||
Timber.v("Uncaught exception: $throwable")
|
||||
preferences.edit {
|
||||
preferences.edit(commit = true) {
|
||||
putBoolean(PREFS_CRASH_KEY, true)
|
||||
}
|
||||
val b = StringBuilder()
|
||||
|
|
Loading…
Add table
Reference in a new issue