mirror of
https://github.com/mihonapp/mihon.git
synced 2025-05-01 00:26:30 +02:00
fix app keeps restarting unable to run CrashActivity
This commit is contained in:
parent
7c7af72f8c
commit
ce0deeacb4
@ -34,7 +34,6 @@ class GlobalExceptionHandler private constructor(
|
||||
try {
|
||||
logcat(priority = LogPriority.ERROR, throwable = exception)
|
||||
launchActivity(applicationContext, activityToBeLaunched, exception)
|
||||
exitProcess(0)
|
||||
} catch (_: Exception) {
|
||||
defaultHandler.uncaughtException(thread, exception)
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ object Firebase {
|
||||
FirebaseAnalytics.getInstance(context).setAnalyticsCollectionEnabled(enabled)
|
||||
}.launchIn(scope)
|
||||
preference.crashlytics().changes().onEach { enabled ->
|
||||
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(enabled)
|
||||
FirebaseCrashlytics.getInstance().isCrashlyticsCollectionEnabled = enabled
|
||||
}.launchIn(scope)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user