デバッグ: Roomのクエリをメインスレッドで実行できるようにした

This commit is contained in:
ろむねこ 2023-12-14 12:11:30 +09:00
parent b7f7183094
commit 39e22de1a2
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -18,6 +18,8 @@ public class LacertaDatabaseModule {
public static LacertaDatabase provideLacertaDatabase(@ApplicationContext Context context) { public static LacertaDatabase provideLacertaDatabase(@ApplicationContext Context context) {
return Room.databaseBuilder(context, return Room.databaseBuilder(context,
LacertaDatabase.class, LacertaDatabase.class,
"lacerta.db").build(); "lacerta.db")
.allowMainThreadQueries() // Debug
.build();
} }
} }