mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
デバッグ: Roomのクエリをメインスレッドで実行できるようにした
This commit is contained in:
parent
b7f7183094
commit
39e22de1a2
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user