mirror of
https://github.com/etesync/android
synced 2024-11-22 07:58:09 +00:00
Revert "Revert "App: only init the data store once per application.""
A lot of reverts. :)
According to more information and testing in #97, this was indeed
unrelated and 1.9.3 was enough to fix it.
This reverts commit 73179318f3
.
This commit is contained in:
parent
e860a37bf7
commit
da3ac48bbf
@ -51,8 +51,7 @@ class App : Application() {
|
||||
* `@Provides @Singleton`.
|
||||
*/
|
||||
// override onUpgrade to handle migrating to a new version
|
||||
val data: MyEntityDataStore
|
||||
get() = initDataStore()
|
||||
val data = initDataStore()
|
||||
|
||||
fun initDataStore(): MyEntityDataStore {
|
||||
val source = MyDatabaseSource(this, Models.DEFAULT, 4)
|
||||
|
Loading…
Reference in New Issue
Block a user