Remove unnecessary bottom inset in chapters list
This commit is contained in:
@@ -182,14 +182,7 @@ class ChaptersFragment :
|
|||||||
binding.recyclerViewChapters.invalidateItemDecorations()
|
binding.recyclerViewChapters.invalidateItemDecorations()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onWindowInsetsChanged(insets: Insets) {
|
override fun onWindowInsetsChanged(insets: Insets) = Unit
|
||||||
binding.recyclerViewChapters.updatePadding(
|
|
||||||
bottom = insets.bottom,
|
|
||||||
)
|
|
||||||
binding.recyclerViewChapters.fastScroller.updateLayoutParams<ViewGroup.MarginLayoutParams> {
|
|
||||||
bottomMargin = insets.bottom
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun onChaptersChanged(list: List<ChapterListItem>) {
|
private fun onChaptersChanged(list: List<ChapterListItem>) {
|
||||||
val adapter = chaptersAdapter ?: return
|
val adapter = chaptersAdapter ?: return
|
||||||
|
|||||||
Reference in New Issue
Block a user