|
|
@ -290,7 +290,7 @@ class ReadBookActivity : BaseReadBookActivity(), |
|
|
|
R.id.menu_download -> showDownloadDialog() |
|
|
|
R.id.menu_download -> showDownloadDialog() |
|
|
|
R.id.menu_add_bookmark -> { |
|
|
|
R.id.menu_add_bookmark -> { |
|
|
|
val book = ReadBook.book |
|
|
|
val book = ReadBook.book |
|
|
|
val page = ReadBook.curTextChapter?.page(ReadBook.durPageIndex()) |
|
|
|
val page = ReadBook.curTextChapter?.page(ReadBook.durPageIndex) |
|
|
|
if (book != null && page != null) { |
|
|
|
if (book != null && page != null) { |
|
|
|
val bookmark = book.createBookMark().apply { |
|
|
|
val bookmark = book.createBookMark().apply { |
|
|
|
chapterIndex = ReadBook.durChapterIndex |
|
|
|
chapterIndex = ReadBook.durChapterIndex |
|
|
@ -657,7 +657,7 @@ class ReadBookActivity : BaseReadBookActivity(), |
|
|
|
launch { |
|
|
|
launch { |
|
|
|
autoPageProgress = 0 |
|
|
|
autoPageProgress = 0 |
|
|
|
binding.readView.upContent(relativePosition, resetPageOffset) |
|
|
|
binding.readView.upContent(relativePosition, resetPageOffset) |
|
|
|
binding.readMenu.setSeekPage(ReadBook.durPageIndex()) |
|
|
|
binding.readMenu.setSeekPage(ReadBook.durPageIndex) |
|
|
|
loadStates = false |
|
|
|
loadStates = false |
|
|
|
success?.invoke() |
|
|
|
success?.invoke() |
|
|
|
} |
|
|
|
} |
|
|
@ -675,7 +675,7 @@ class ReadBookActivity : BaseReadBookActivity(), |
|
|
|
override fun pageChanged() { |
|
|
|
override fun pageChanged() { |
|
|
|
launch { |
|
|
|
launch { |
|
|
|
autoPageProgress = 0 |
|
|
|
autoPageProgress = 0 |
|
|
|
binding.readMenu.setSeekPage(ReadBook.durPageIndex()) |
|
|
|
binding.readMenu.setSeekPage(ReadBook.durPageIndex) |
|
|
|
startBackupJob() |
|
|
|
startBackupJob() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|