Created
November 17, 2018 17:29
-
-
Save kirich1409/3c73adcc7ac79021b1c9b21f719bed3a to your computer and use it in GitHub Desktop.
Как происходит доставка зависимостей в Fragment сейчас
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 MainFragment : Fragment() { | |
// The dependency isn't final and private | |
@Inject | |
lateinit var sampleDep: SampleDependency | |
override fun onAttach(context: Context) { | |
super.onAttach(context) | |
// Inject dependencies with Dagger 2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment