Skip to content

Commit

Permalink
Merge pull request #5195 from abaker/fix_crash_detection
Browse files Browse the repository at this point in the history
Set PREFS_CRASH_KEY synchronously
  • Loading branch information
ganfra authored Feb 10, 2022
2 parents f08b10b + a4b50d2 commit 56338c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/5195.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reliably display crash report prompt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 56338c2

Please sign in to comment.