Providerなのでstaticに

This commit is contained in:
r-ca 2023-12-14 03:46:26 +09:00
parent 080f11c3e7
commit bd17bf5f80
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -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();