feat: add string and fix bug

This commit is contained in:
Xwite 2022-10-10 14:15:10 +08:00
parent 86e83a23a1
commit d794ee5b6a
9 changed files with 9 additions and 0 deletions

View File

@ -49,6 +49,7 @@ object ReadBook : CoroutineScope by MainScope() {
//暂时保存跳转前进度
fun saveCurrentBookProcess() {
if (lastBookPress != null) return //避免进度条连续跳转不能覆盖最初的进度记录
lastBookPress = book?.let { BookProgress(it) }
}
//恢复跳转前进度

View File

@ -996,6 +996,7 @@ class ReadBookActivity : BaseReadBookActivity(),
/* 恢复到 全文搜索/进度条跳转前的位置 */
private fun restoreLastBookProcess() {
// 默认提示恢复
alert(R.string.draw) {
setMessage(R.string.restore_last_book_process)
yesButton {

View File

@ -1039,4 +1039,5 @@
<string name="progress_bar_behavior">进度条行为</string>
<string name="source_edit_text_max_line">源编辑框最大行数</string>
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
</resources>

View File

@ -1042,4 +1042,5 @@
<string name="progress_bar_behavior">进度条行为</string>
<string name="source_edit_text_max_line">源编辑框最大行数</string>
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
</resources>

View File

@ -1042,4 +1042,5 @@
<string name="progress_bar_behavior">进度条行为</string>
<string name="source_edit_text_max_line">源编辑框最大行数</string>
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
</resources>

View File

@ -1039,4 +1039,5 @@
<string name="progress_bar_behavior">进度条行为</string>
<string name="source_edit_text_max_line">源编辑框最大行数</string>
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
</resources>

View File

@ -1041,4 +1041,5 @@
<string name="progress_bar_behavior">进度条行为</string>
<string name="source_edit_text_max_line">源编辑框最大行数</string>
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
</resources>

View File

@ -1041,4 +1041,5 @@
<string name="progress_bar_behavior">进度条行为</string>
<string name="source_edit_text_max_line">源编辑框最大行数</string>
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
</resources>

View File

@ -1042,4 +1042,5 @@
<string name="progress_bar_behavior">进度条行为</string>
<string name="source_edit_text_max_line">源编辑框最大行数</string>
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
</resources>