RepoDB does not need to run on main thread

This commit is contained in:
topjohnwu
2019-08-02 01:20:16 -07:00
parent 1f75e63c37
commit 1ababc8c7f
2 changed files with 7 additions and 5 deletions

View File

@@ -20,5 +20,4 @@ val databaseModule = module {
fun createRepoDatabase(context: Context) =
Room.databaseBuilder(context, RepoDatabase::class.java, "repo.db")
.fallbackToDestructiveMigration()
.allowMainThreadQueries()
.build()