Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@InjectPreference
lateinit var component: PreferenceComponent_UserProfileComponent
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
PreferenceComponent_UserProfileComponent.getInstance().inject(this) // inject dependency injection to MainActivity.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment