Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Define registrationComponent in the RegistrationActivity class in https://developer.android.com/codelabs/android-dagger#10 #50

Open
Olexandr1904 opened this issue May 10, 2021 · 0 comments

Comments

@Olexandr1904
Copy link

Olexandr1904 commented May 10, 2021

Field doesn't define in the RegistrationActivity class in
https://developer.android.com/codelabs/android-dagger#10

The registrationComponent filed not defined as a class field.
It may be confusable
Could you change from

class RegistrationActivity : AppCompatActivity() {
    ...
    override fun onCreate(savedInstanceState: Bundle?) {

to

class RegistrationActivity : AppCompatActivity() {
    lateinit var registrationComponent: RegistrationComponent
    ...
    override fun onCreate(savedInstanceState: Bundle?) {
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant