Created
May 28, 2017 12:26
-
-
Save bffcorreia/fcd226bcca830b8312916d36b6e1abb7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module public class ActivityModule { | |
private final Activity activity; | |
public ActivityModule(Activity activity) { | |
this.activity = activity; | |
} | |
@Provides public Context provideActivityContext() { | |
return activity; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment