pull/736/head
gedoor 4 years ago
parent 9527f73f51
commit 5b1ac7703e
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/page/ReadView.kt
  2. 1
      app/src/main/java/io/legado/app/ui/book/read/page/delegate/PageDelegate.kt

@ -547,5 +547,6 @@ class ReadView(context: Context, attrs: AttributeSet) :
fun showActionMenu() fun showActionMenu()
fun screenOffTimerStart() fun screenOffTimerStart()
fun showTextActionMenu() fun showTextActionMenu()
fun autoPageStop()
} }
} }

@ -173,6 +173,7 @@ abstract class PageDelegate(protected val readView: ReadView) {
fun hasNext(): Boolean { fun hasNext(): Boolean {
val hasNext = readView.pageFactory.hasNext() val hasNext = readView.pageFactory.hasNext()
if (!hasNext) { if (!hasNext) {
readView.callBack.autoPageStop()
if (!snackBar.isShown) { if (!snackBar.isShown) {
snackBar.setText(R.string.no_next_page) snackBar.setText(R.string.no_next_page)
snackBar.show() snackBar.show()

Loading…
Cancel
Save