From 6561e3c7bdd33eb6d1f7444acef0e512c27d76c7 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 22 Sep 2019 13:21:30 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/widget/page/ContentView.kt | 3 +++ 1 file changed, 3 insertions(+) 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 258a7c928..8b5185bd9 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 @@ -51,6 +51,9 @@ class ContentView : FrameLayout { content_text_view.layout?.getLineForVertical(scrollY)?.let { line -> callBack?.scrollToLine(line) } + if (content_text_view.atBottom()) { + setPageIndex(pageSize - 1) + } } }