Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Fix inverted if condition

Cette révision appartient à :
len 2016-07-31 00:05:05 +02:00
Parent e95fcf6172
révision be521804c8

Voir le fichier

@ -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