mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +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 {
|
||||
|
||||
@Provides
|
||||
public LacertaDatabase provideLacertaDatabase(@ApplicationContext Context context) {
|
||||
public static LacertaDatabase provideLacertaDatabase(@ApplicationContext Context context) {
|
||||
return Room.databaseBuilder(context,
|
||||
LacertaDatabase.class,
|
||||
"lacerta.db").build();
|
||||
|
|
Loading…
Reference in New Issue
Block a user