Partially revert 7d87417095

DownloadManager is still piece of shit, need time to rewrite
This commit is contained in:
tarsin committed 2023-02-22 00:19:47 +08:00
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()
}