Be more aggressive in starting services

This commit is contained in:
Mygod
2021-10-23 17:24:01 -04:00
parent c1ae7857eb
commit cd6c72f559
2 changed files with 19 additions and 29 deletions

View File

@@ -48,7 +48,6 @@ class App : Application() {
// alternative to PreferenceManager.getDefaultSharedPreferencesName(this)
deviceStorage.moveSharedPreferencesFrom(this, PreferenceManager(this).sharedPreferencesName)
deviceStorage.moveDatabaseFrom(this, AppDatabase.DB_NAME)
BootReceiver.migrateIfNecessary(this, deviceStorage)
} else deviceStorage = this
Services.init { this }
@@ -93,6 +92,7 @@ class App : Application() {
})
EBegFragment.init()
if (DhcpWorkaround.shouldEnable) DhcpWorkaround.enable(true)
BootReceiver.init()
}
override fun onConfigurationChanged(newConfig: Configuration) {