From da3ac48bbf7b265d912bfc59bef02b8fd85e6018 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 18 Nov 2019 13:43:36 +0200 Subject: [PATCH] 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 73179318f317ac44d32bba6bc6f9e16a95aa1b4d. --- app/src/main/java/com/etesync/syncadapter/App.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/etesync/syncadapter/App.kt b/app/src/main/java/com/etesync/syncadapter/App.kt index 16508870..3e444471 100644 --- a/app/src/main/java/com/etesync/syncadapter/App.kt +++ b/app/src/main/java/com/etesync/syncadapter/App.kt @@ -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)