mirror of
https://github.com/mihonapp/mihon.git
synced 2025-05-02 17:16: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 {
|
try {
|
||||||
logcat(priority = LogPriority.ERROR, throwable = exception)
|
logcat(priority = LogPriority.ERROR, throwable = exception)
|
||||||
launchActivity(applicationContext, activityToBeLaunched, exception)
|
launchActivity(applicationContext, activityToBeLaunched, exception)
|
||||||
exitProcess(0)
|
|
||||||
} catch (_: Exception) {
|
} catch (_: Exception) {
|
||||||
defaultHandler.uncaughtException(thread, exception)
|
defaultHandler.uncaughtException(thread, exception)
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ object Firebase {
|
|||||||
FirebaseAnalytics.getInstance(context).setAnalyticsCollectionEnabled(enabled)
|
FirebaseAnalytics.getInstance(context).setAnalyticsCollectionEnabled(enabled)
|
||||||
}.launchIn(scope)
|
}.launchIn(scope)
|
||||||
preference.crashlytics().changes().onEach { enabled ->
|
preference.crashlytics().changes().onEach { enabled ->
|
||||||
FirebaseCrashlytics.getInstance().setCrashlyticsCollectionEnabled(enabled)
|
FirebaseCrashlytics.getInstance().isCrashlyticsCollectionEnabled = enabled
|
||||||
}.launchIn(scope)
|
}.launchIn(scope)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user