Partially revert 7d87417095
DownloadManager is still piece of shit, need time to rewrite
This commit is contained in:
1 parent
755a15d5e5
commit
ddccdc2ade
1 file changed
+3
-1
@@ -22,5 +22,7 @@ abstract class EhDatabase : RoomDatabase() {
|
||||
}
|
||||
|
||||
fun buildMainDB(context: Context): EhDatabase {
|
||||
return Room.databaseBuilder(context, EhDatabase::class.java, "eh.db").build()
|
||||
// TODO: Remove allowMainThreadQueries
|
||||
return Room.databaseBuilder(context, EhDatabase::class.java, "eh.db").allowMainThreadQueries()
|
||||
.build()
|
||||
}
|
||||
Reference in new issue
Block a user