-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Injecting shared prefs uses activity when not available #137
Milestone
Comments
This highlights a problem with the Context injection into Providers that has not been solved yet... we should inject the Application into Providers. Will address soon. |
Here's the culprit: We should be building a new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am attempting to inject SharedPreferences into a
@Provides
method in my Module but it's generating this broken code:PreferenceManager.getDefaultSharedPreferences(this.getActivity())
when it should be reaching for the application scope.
The text was updated successfully, but these errors were encountered: