feat: 优化

pull/219/head
kunfei 5 years ago
parent 6c28abcdcd
commit f39ac0a011
  1. 4
      app/src/main/java/io/legado/app/service/help/ReadBook.kt
  2. 5
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -148,7 +148,7 @@ object ReadBook {
}
private fun curPageChanged() {
callBack?.upPageProgress()
callBack?.pageChanged()
if (BaseReadAloudService.isRun) {
readAloud(!BaseReadAloudService.pause)
}
@ -344,7 +344,7 @@ object ReadBook {
interface CallBack {
fun upContent(relativePosition: Int = 0, resetPageOffset: Boolean = true)
fun upView()
fun upPageProgress()
fun pageChanged()
fun contentLoadFinish()
}
}

@ -523,9 +523,10 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo
}
/**
* 更新进度条
* 页面改变
*/
override fun upPageProgress() {
override fun pageChanged() {
autoPageProgress = 0
launch {
seek_read_page.progress = ReadBook.durPageIndex
}

Loading…
Cancel
Save