From e846858488c42ace8d4dce396e9036186fca5404 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 23 Sep 2019 17:42:46 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt | 1 - app/src/main/java/io/legado/app/ui/widget/page/PageView.kt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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()) } } }