谷歌 为什么你的Slider不能处理越界

This commit is contained in:
HapeLee committed 2025-10-26 12:35:03 +08:00
1 parent 83f1aa5b3c
commit 5db8936e57
1 file changed
+6 -1
@@ -333,9 +333,14 @@ class ReadMangaActivity : VMBaseActivity<ActivityMangaBinding, ReadMangaViewMode
mLayoutManager.scrollToPositionWithOffset(pos, 0) mLayoutManager.scrollToPositionWithOffset(pos, 0)
binding.flLoading.isGone = true binding.flLoading.isGone = true
loadMoreView.visible() loadMoreView.visible()
val chapter = ReadManga.curMangaChapter
if (chapter != null && chapter.imageCount > 0) {
binding.mangaMenu.upSeekBar( binding.mangaMenu.upSeekBar(
ReadManga.durChapterPos, ReadManga.curMangaChapter!!.imageCount ReadManga.durChapterPos, chapter.imageCount
) )
} else {
binding.mangaMenu.upSeekBar(1, 2)
}
} }
if (curFinish) { if (curFinish) {