diff --git a/app/src/main/java/com/eusecom/attendance/dagger/modules/MyActivityModule.java b/app/src/main/java/com/eusecom/attendance/dagger/modules/MyActivityModule.java index f94fb5d..2f2e64a 100644 --- a/app/src/main/java/com/eusecom/attendance/dagger/modules/MyActivityModule.java +++ b/app/src/main/java/com/eusecom/attendance/dagger/modules/MyActivityModule.java @@ -20,6 +20,7 @@ public class MyActivityModule { public MyActivityModule(DemoDaggerSubActivity activity) { this.activity = activity; } @Provides + // do not get @Singleton in subcomponent @MyActivityScope SharedPreferences providesSharedPreferences(Application application) { return PreferenceManager.getDefaultSharedPreferences(application);