mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-22 16:03:15 +00:00
fix
This commit is contained in:
parent
d36195c89b
commit
00aa51e082
|
@ -12,7 +12,7 @@ import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
|
|||
|
||||
public class SharedPrefImpl implements SharedPref{
|
||||
|
||||
private Context applicationContext;
|
||||
private final Context applicationContext;
|
||||
|
||||
@Inject
|
||||
public SharedPrefImpl(@ApplicationContext Context applicationContext) {
|
||||
|
|
|
@ -7,11 +7,13 @@ import dagger.Binds;
|
|||
import dagger.Module;
|
||||
import dagger.hilt.InstallIn;
|
||||
import dagger.hilt.components.SingletonComponent;
|
||||
import one.nem.lacerta.data.impl.SharedPrefImpl;
|
||||
import one.nem.lacerta.data.repository.SharedPref;
|
||||
|
||||
@Module
|
||||
@InstallIn(SingletonComponent.class)
|
||||
abstract public class SharedPrefModule {
|
||||
|
||||
@Binds
|
||||
abstract SharedPreferences bindSharedPreferences(Context applicationContext);
|
||||
public abstract SharedPref bindSharedPref(SharedPrefImpl sharedPrefImpl);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user