feat: add string and fix bug
This commit is contained in:
@@ -49,6 +49,7 @@ object ReadBook : CoroutineScope by MainScope() {
|
|||||||
|
|
||||||
//暂时保存跳转前进度
|
//暂时保存跳转前进度
|
||||||
fun saveCurrentBookProcess() {
|
fun saveCurrentBookProcess() {
|
||||||
|
if (lastBookPress != null) return //避免进度条连续跳转不能覆盖最初的进度记录
|
||||||
lastBookPress = book?.let { BookProgress(it) }
|
lastBookPress = book?.let { BookProgress(it) }
|
||||||
}
|
}
|
||||||
//恢复跳转前进度
|
//恢复跳转前进度
|
||||||
|
|||||||
@@ -996,6 +996,7 @@ class ReadBookActivity : BaseReadBookActivity(),
|
|||||||
|
|
||||||
/* 恢复到 全文搜索/进度条跳转前的位置 */
|
/* 恢复到 全文搜索/进度条跳转前的位置 */
|
||||||
private fun restoreLastBookProcess() {
|
private fun restoreLastBookProcess() {
|
||||||
|
// 默认提示恢复
|
||||||
alert(R.string.draw) {
|
alert(R.string.draw) {
|
||||||
setMessage(R.string.restore_last_book_process)
|
setMessage(R.string.restore_last_book_process)
|
||||||
yesButton {
|
yesButton {
|
||||||
|
|||||||
@@ -1039,4 +1039,5 @@
|
|||||||
<string name="progress_bar_behavior">进度条行为</string>
|
<string name="progress_bar_behavior">进度条行为</string>
|
||||||
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
||||||
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
||||||
|
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1042,4 +1042,5 @@
|
|||||||
<string name="progress_bar_behavior">进度条行为</string>
|
<string name="progress_bar_behavior">进度条行为</string>
|
||||||
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
||||||
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
||||||
|
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1042,4 +1042,5 @@
|
|||||||
<string name="progress_bar_behavior">进度条行为</string>
|
<string name="progress_bar_behavior">进度条行为</string>
|
||||||
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
||||||
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
||||||
|
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1039,4 +1039,5 @@
|
|||||||
<string name="progress_bar_behavior">进度条行为</string>
|
<string name="progress_bar_behavior">进度条行为</string>
|
||||||
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
||||||
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
||||||
|
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1041,4 +1041,5 @@
|
|||||||
<string name="progress_bar_behavior">进度条行为</string>
|
<string name="progress_bar_behavior">进度条行为</string>
|
||||||
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
||||||
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
||||||
|
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1041,4 +1041,5 @@
|
|||||||
<string name="progress_bar_behavior">进度条行为</string>
|
<string name="progress_bar_behavior">进度条行为</string>
|
||||||
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
||||||
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
||||||
|
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1042,4 +1042,5 @@
|
|||||||
<string name="progress_bar_behavior">进度条行为</string>
|
<string name="progress_bar_behavior">进度条行为</string>
|
||||||
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
<string name="source_edit_text_max_line">源编辑框最大行数</string>
|
||||||
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
<string name="source_edit_max_line_summary">%s,设置行数小于屏幕可显示的最大行数可以更方便的滑动到其他的字段进行编辑</string>
|
||||||
|
<string name="restore_last_book_process">是否恢复到跳转前的阅读进度?</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user