handle exceptions for chrashlytics

This commit is contained in:
jmir1 2023-04-28 12:33:47 +02:00
parent 2c1dbdc008
commit ed442d9db9

View file

@ -34,6 +34,7 @@ class GlobalExceptionHandler private constructor(
try { try {
logcat(priority = LogPriority.ERROR, throwable = exception) logcat(priority = LogPriority.ERROR, throwable = exception)
launchActivity(applicationContext, activityToBeLaunched, exception) launchActivity(applicationContext, activityToBeLaunched, exception)
defaultHandler.uncaughtException(thread, exception)
exitProcess(0) exitProcess(0)
} catch (_: Exception) { } catch (_: Exception) {
defaultHandler.uncaughtException(thread, exception) defaultHandler.uncaughtException(thread, exception)