From be521804c8a907dc018a5ef69c87e7c665ab4373 Mon Sep 17 00:00:00 2001 From: len Date: Sun, 31 Jul 2016 00:05:05 +0200 Subject: [PATCH] Fix inverted if condition --- .../tachiyomi/ui/library/LibraryCategoryFragment.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryFragment.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryFragment.kt index 084e1b1350..7b4916a8de 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryFragment.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryCategoryFragment.kt @@ -82,13 +82,13 @@ class LibraryCategoryFragment : BaseFragment(), FlexibleViewHolder.OnListItemCli adapter = LibraryCategoryAdapter(this) val recycler = if (preferences.libraryAsList().getOrDefault()) { - (swipe_refresh.inflate(R.layout.library_grid_recycler) as AutofitRecyclerView).apply { - spanCount = libraryFragment.mangaPerRow - } - } else { (swipe_refresh.inflate(R.layout.library_list_recycler) as RecyclerView).apply { layoutManager = LinearLayoutManager(context) } + } else { + (swipe_refresh.inflate(R.layout.library_grid_recycler) as AutofitRecyclerView).apply { + spanCount = libraryFragment.mangaPerRow + } } (recycler.layoutManager as LinearLayoutManager).recycleChildrenOnDetach = true