mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 19:47:36 +00:00
デバッグ: Roomのクエリをメインスレッドで実行できるようにした
This commit is contained in:
1 file changed
+3
-1
@@ -18,6 +18,8 @@ public class LacertaDatabaseModule {
|
||||
public static LacertaDatabase provideLacertaDatabase(@ApplicationContext Context context) {
|
||||
return Room.databaseBuilder(context,
|
||||
LacertaDatabase.class,
|
||||
"lacerta.db").build();
|
||||
"lacerta.db")
|
||||
.allowMainThreadQueries() // Debug
|
||||
.build();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user