|
|
|
@ -66,6 +66,11 @@ class TasksApplication : Application(), Configuration.Provider {
|
|
|
|
override fun onCreate() {
|
|
|
|
override fun onCreate() {
|
|
|
|
super.onCreate()
|
|
|
|
super.onCreate()
|
|
|
|
buildSetup.setup()
|
|
|
|
buildSetup.setup()
|
|
|
|
|
|
|
|
val defaultExceptionHandler = Thread.getDefaultUncaughtExceptionHandler()
|
|
|
|
|
|
|
|
Thread.setDefaultUncaughtExceptionHandler { thread, throwable ->
|
|
|
|
|
|
|
|
Timber.e(throwable, "Uncaught exception in thread $thread")
|
|
|
|
|
|
|
|
defaultExceptionHandler?.uncaughtException(thread, throwable) ?: throw throwable
|
|
|
|
|
|
|
|
}
|
|
|
|
upgrade()
|
|
|
|
upgrade()
|
|
|
|
preferences.isSyncOngoing = false
|
|
|
|
preferences.isSyncOngoing = false
|
|
|
|
ThemeBase.getThemeBase(preferences, inventory, null).setDefaultNightMode()
|
|
|
|
ThemeBase.getThemeBase(preferences, inventory, null).setDefaultNightMode()
|
|
|
|
|