diff --git a/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt b/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt index a3a9639b9..719129a03 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt @@ -52,7 +52,6 @@ class ContentView : FrameLayout { callBack?.scrollToLine(line) } if (content_text_view.atBottom()) { - setPageIndex(pageSize - 1) callBack?.scrollToLast() } } diff --git a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt index dce8a906f..69ce82b33 100644 --- a/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/page/PageView.kt @@ -247,6 +247,7 @@ class PageView(context: Context, attrs: AttributeSet) : if (isScrollDelegate) { callback?.textChapter()?.let { callback?.setPageIndex(it.lastIndex()) + curPage?.setPageIndex(it.lastIndex()) } } }