Restore allowMainThreadQueries, prepare to suspendize DownloadManager

This commit is contained in:
tarsin committed 2023-07-12 09:31:16 +08:00
1 parent 389f27dfa1
commit 3f53710c5b
1 file changed
+1 -1
+1 -1
View File
@@ -36,7 +36,7 @@ import com.hippo.ehviewer.util.sendTo
import splitties.arch.room.roomDb
object EhDB {
private val db = roomDb<EhDatabase>("eh.db")
private val db = roomDb<EhDatabase>("eh.db") { allowMainThreadQueries() }
// Fix state
@get:Synchronized