feat: add string and fix bug

This commit is contained in:
Xwite
2022-10-10 14:27:49 +08:00
parent 69ee6786da
commit 1d3a28e771
9 changed files with 9 additions and 0 deletions
@@ -49,6 +49,7 @@ object ReadBook : CoroutineScope by MainScope() {
//暂时保存跳转前进度
fun saveCurrentBookProcess() {
if (lastBookPress != null) return //避免进度条连续跳转不能覆盖最初的进度记录
lastBookPress = book?.let { BookProgress(it) }
}
//恢复跳转前进度
@@ -996,6 +996,7 @@ class ReadBookActivity : BaseReadBookActivity(),
/* 恢复到 全文搜索/进度条跳转前的位置 */
private fun restoreLastBookProcess() {
// 默认提示恢复
alert(R.string.draw) {
setMessage(R.string.restore_last_book_process)
yesButton {