Fix manga info divider for the first chapter in certain situations

This commit is contained in:
Jobobby04 2020-07-25 23:15:51 -04:00
parent 87e3a610e1
commit 47373a9483

View File

@ -238,7 +238,7 @@ class MangaController :
binding.recycler.adapter = ConcatAdapter(adapters)
binding.recycler.layoutManager = LinearLayoutManager(view.context)
binding.recycler.addItemDecoration(ChapterDividerItemDecoration(view.context, if (preferences.recommendsInOverflow().get()) 3 else 4))
binding.recycler.addItemDecoration(ChapterDividerItemDecoration(view.context, if ((!preferences.recommendsInOverflow().get() || smartSearchConfig != null) && thisSourceAsLewdSource != null) 4 else if (!preferences.recommendsInOverflow().get() || smartSearchConfig != null || thisSourceAsLewdSource != null) 3 else 2))
binding.recycler.setHasFixedSize(true)
chaptersAdapter?.fastScroller = binding.fastScroller