mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +00:00
Providerなのでstaticに
This commit is contained in:
parent
080f11c3e7
commit
bd17bf5f80
|
@ -15,7 +15,7 @@ import dagger.hilt.components.SingletonComponent;
|
||||||
public class LacertaDatabaseModule {
|
public class LacertaDatabaseModule {
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
public 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").build();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user