Merge pull request #5195 from abaker/fix_crash_detection
Set PREFS_CRASH_KEY synchronously
This commit is contained in:
		
						commit
						56338c22dd
					
				
							
								
								
									
										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) { |     override fun uncaughtException(thread: Thread, throwable: Throwable) { | ||||||
|         Timber.v("Uncaught exception: $throwable") |         Timber.v("Uncaught exception: $throwable") | ||||||
|         preferences.edit { |         preferences.edit(commit = true) { | ||||||
|             putBoolean(PREFS_CRASH_KEY, true) |             putBoolean(PREFS_CRASH_KEY, true) | ||||||
|         } |         } | ||||||
|         val b = StringBuilder() |         val b = StringBuilder() | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user