Closed HasimD closed 1 year ago
Some bugs & errors that need to be fixed:
User type some query and after that when erasing the search query app crashes, this error only appears while searching local books. Error:java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 at com.armutyus.ninova.ui.search.adapters.MainSearchRecyclerViewAdapter$MainSearchViewHolder.bindLocalBook(MainSearchRecyclerViewAdapter.kt:197) at com.armutyus.ninova.ui.search.adapters.MainSearchRecyclerViewAdapter$MainSearchViewHolder.bind(MainSearchRecyclerViewAdapter.kt:218) at com.armutyus.ninova.ui.search.adapters.MainSearchRecyclerViewAdapter.onBindViewHolder(MainSearchRecyclerViewAdapter.kt:101) at com.armutyus.ninova.ui.search.adapters.MainSearchRecyclerViewAdapter.onBindViewHolder(MainSearchRecyclerViewAdapter.kt:30)
When user type some query to search we need both api & local search results. But after user clicks api search button not see the search results list but see the old list. If user types something then search results are coming.
On BookDetailsActivity we want to show to user that which shelves that the books in. But if user go to the BookToShelfFragment and add it to the shelf and back to the activity, shelves list not updated.
This is the API we'll use: https://developers.google.com/books/docs/v1/using
At first stage, we just need two GET requests: books.volumes.get.
We might want to choose a constant value for books queries'
maxResult
.