# Chapter 12.4 Errata

**URL:** <https://forums.kodeco.com/t/chapter-12-4-errata/177999>\
**Category:** Advanced Android App Architecture\
**Created:** [September 8, 2022, 3:55pm UTC](https://forums.kodeco.com/t/chapter-12-4-errata/177999 "2022-09-08T15:55:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jacobjohbitbucket](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jacobjohbitbucket/32/102075_2.png) [@jacobjohbitbucket](https://forums.kodeco.com/u/jacobjohbitbucket)\
**Post date:** [September 8, 2022, 3:55pm UTC](https://forums.kodeco.com/t/chapter-12-4-errata/177999/1 "2022-09-08T15:55:16Z")

</div>

The book suggests the app should function (movies should be searchable) after making the changes up to chapter 12 section 4 (using the starter project for chapter 12).

But I had to add the following to SearchMovieActivity for it to work:

````auto
  private lateinit var searchedMovies: LiveData<List<Movie>>

    val movieRepository = MovieRepositoryImpl()
    searchedMovies = movieRepository.searchMovies(title)
    showLoading()
    searchedMovies.observe(this, Observer { it ->
      hideLoading()
      if (it == null) {
        showMessage()
      } else {
        adapter.setMovies(it)
      }
    })```
````

---

<div class="post-metadata">

**Author:** ![jayantvarma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/jayantvarma/32/111768_2.png) [@jayantvarma](https://forums.kodeco.com/u/jayantvarma)\
**Post date:** [September 9, 2022, 7:31am UTC](https://forums.kodeco.com/t/chapter-12-4-errata/177999/2 "2022-09-09T07:31:24Z")

</div>

@yuncheng13 could you please have a look at this
