len 8 years ago
parent
commit
3e8ac6b2d0

+ 4 - 0
app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt

@@ -311,6 +311,10 @@ class CatalogueFragment : BaseRxFragment<CataloguePresenter>(), FlexibleViewHold
      * @param mangas the list of manga of the page.
      */
     fun onAddPage(page: Int, mangas: List<Manga>) {
+        // Avoid IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter...
+        catalogue_grid.stopScroll()
+        catalogue_list.stopScroll()
+
         hideProgressBar()
         if (page == 0) {
             adapter.clear()