diff --git a/data/src/main/java/one/nem/lacerta/source/pref/impl/CommonImpl.java b/data/src/main/java/one/nem/lacerta/source/pref/impl/CommonImpl.java index ffcdaf52..49cd07d0 100644 --- a/data/src/main/java/one/nem/lacerta/source/pref/impl/CommonImpl.java +++ b/data/src/main/java/one/nem/lacerta/source/pref/impl/CommonImpl.java @@ -16,13 +16,15 @@ import dagger.hilt.android.qualifiers.ApplicationContext; import one.nem.lacerta.source.pref.repository.Common; -@AndroidEntryPoint public class CommonImpl implements Common { - @ApplicationContext - @Inject Context applicationContext; + @Inject + public CommonImpl(@ApplicationContext Context applicationContext) { + this.applicationContext = applicationContext; + } + public String getStringValue(String key) { SharedPreferences pref = applicationContext.getSharedPreferences("common", Context.MODE_PRIVATE); return pref.getString(key, "");