mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +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) {
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user