Remove unnecessary bottom inset in chapters list

This commit is contained in:
Zakhar Timoshenko
2022-07-28 20:34:47 +03:00
parent ea3b43ba88
commit c313184666

View File

@@ -182,14 +182,7 @@ class ChaptersFragment :
binding.recyclerViewChapters.invalidateItemDecorations()
}
override fun onWindowInsetsChanged(insets: Insets) {
binding.recyclerViewChapters.updatePadding(
bottom = insets.bottom,
)
binding.recyclerViewChapters.fastScroller.updateLayoutParams<ViewGroup.MarginLayoutParams> {
bottomMargin = insets.bottom
}
}
override fun onWindowInsetsChanged(insets: Insets) = Unit
private fun onChaptersChanged(list: List<ChapterListItem>) {
val adapter = chaptersAdapter ?: return