mirror of
https://github.com/etesync/android
synced 2024-11-14 03:39:52 +00:00
Revert "App: only init the data store once per application."
It seems like this is the cause of #97 as19b4e2a796
hasn't fixed the issue. Still not sure why it's happening, but reverting it so no more users suffer from this issue. This reverts commit26ea8900a2
.
This commit is contained in:
parent
2c8f989278
commit
73179318f3
@ -51,7 +51,8 @@ class App : Application() {
|
||||
* `@Provides @Singleton`.
|
||||
*/
|
||||
// override onUpgrade to handle migrating to a new version
|
||||
val data = initDataStore()
|
||||
val data: MyEntityDataStore
|
||||
get() = initDataStore()
|
||||
|
||||
fun initDataStore(): MyEntityDataStore {
|
||||
val source = MyDatabaseSource(this, Models.DEFAULT, 4)
|
||||
|
Loading…
Reference in New Issue
Block a user