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