Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in callback onCreate() in Step 14 [Java] #50

Closed
Marvel0usx opened this issue Nov 30, 2019 · 1 comment
Closed

Error in callback onCreate() in Step 14 [Java] #50

Marvel0usx opened this issue Nov 30, 2019 · 1 comment

Comments

@Marvel0usx
Copy link

In onCreate() method below RecyclerView code block, when getting a ViewModel from ViewModelProviders, the code should be
mWordViewModel = ViewModelProviders.of(this).get(WordViewModel.class);
according to https://developer.android.com/topic/libraries/architecture/viewmodel.html

@florina-muntenescu
Copy link
Collaborator

Use ViewModelProvider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants