Skip to content
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.

Extra argument "mBooksTextView" in step 3-5 #11

Open
giorgosart opened this issue Jan 1, 2018 · 1 comment
Open

Extra argument "mBooksTextView" in step 3-5 #11

giorgosart opened this issue Jan 1, 2018 · 1 comment

Comments

@giorgosart
Copy link

After going through step 3 point 5, I observed that if you copy and paste the code provided from the tutorial here the code does not compile as there is an extra parameter in showBooksInUi(books, **mBooksTextView**);

The method showBooksInUi expects a List not a List and TextView

@josenaves
Copy link

Just saw that too. The correct code for step 5 is this:

    private void subscribeUiBooks() {
        mViewModel.books.observe(this, new Observer<List<Book>>() {
            @Override
            public void onChanged(@NonNull final List<Book> books) {
                showBooksInUi(books);
            }
        });
    }

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

2 participants