Created
September 14, 2018 15:07
-
-
Save ValeryPonomarenko/9a37f1cc85b9dc0c0603719bb913f0da to your computer and use it in GitHub Desktop.
Lifecycle aware dagger components
This file contains 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
class SecondFragment : Fragment() { | |
//code... | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
InjectionManager.instance.findComponent<AppComponent>().inject(this) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment