From 3e8ac6b2d064fae2ddf6679149c267c315f14549 Mon Sep 17 00:00:00 2001 From: len Date: Sun, 3 Jul 2016 21:48:55 +0200 Subject: [PATCH] Fix for #361? --- .../eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt index ae62b22b57..5299a61a54 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/catalogue/CatalogueFragment.kt @@ -311,6 +311,10 @@ class CatalogueFragment : BaseRxFragment(), FlexibleViewHold * @param mangas the list of manga of the page. */ fun onAddPage(page: Int, mangas: List) { + // Avoid IndexOutOfBoundsException: Inconsistency detected. Invalid view holder adapter... + catalogue_grid.stopScroll() + catalogue_list.stopScroll() + hideProgressBar() if (page == 0) { adapter.clear()