mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 22:21:52 +01:00
Fix inverted if condition
This commit is contained in:
parent
e95fcf6172
commit
be521804c8
@ -82,13 +82,13 @@ class LibraryCategoryFragment : BaseFragment(), FlexibleViewHolder.OnListItemCli
|
|||||||
adapter = LibraryCategoryAdapter(this)
|
adapter = LibraryCategoryAdapter(this)
|
||||||
|
|
||||||
val recycler = if (preferences.libraryAsList().getOrDefault()) {
|
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 {
|
(swipe_refresh.inflate(R.layout.library_list_recycler) as RecyclerView).apply {
|
||||||
layoutManager = LinearLayoutManager(context)
|
layoutManager = LinearLayoutManager(context)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
(swipe_refresh.inflate(R.layout.library_grid_recycler) as AutofitRecyclerView).apply {
|
||||||
|
spanCount = libraryFragment.mangaPerRow
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
(recycler.layoutManager as LinearLayoutManager).recycleChildrenOnDetach = true
|
(recycler.layoutManager as LinearLayoutManager).recycleChildrenOnDetach = true
|
||||||
|
Loading…
Reference in New Issue
Block a user