同步进度功能补充 (#4352)

* 进度同步补充:
在初始阅读界面时拉取云端进度 --> 初始阅读界面保留原有拉取逻辑,除此之外的阅读界面处于已恢复状态时执行同步云端进度,若云端进度快于本地则弹窗提醒是否同步
无 --> 监听到网络切换到有网环境时执行同步云端进度,若云端进度快于本地则弹窗提醒是否同步
页面进入已暂停状态时上传阅读进度 --> 页面进入已暂停状态时执行同步云端进度

以上新增的同步云端进度逻辑为:如果本地进度快于服务器进度或者没有进度则进行上传,如果慢与服务器进度则返回云端进度按需执行

* 点击区域增加同步阅读进度功能

* 阅读界面初始化同步逻辑修改

* merge

* merge

* merge

* 增加覆盖云端进度

* merge

* merge

* 多次弹窗问题修改

* 补充的同步功能增加配置开关

* Revert "优化"

This reverts commit d51d0f8301.

* merge

---------

Co-authored-by: mozhu <lcl_em@163.com>
This commit is contained in:
lcdgit
2024-11-15 19:33:16 +08:00
committed by GitHub
co-authored by mozhu
parent c1c0142cca
commit be862ab557
17 changed files with 161 additions and 57 deletions
+5
View File
@@ -812,9 +812,14 @@
<string name="rule_subscription">Rule Subscription</string>
<string name="rule_sub_empty_msg">Add the rule import address provided by the bosses\nClick to import rules after adding</string>
<string name="get_book_progress">Pull the cloud progress</string>
<string name="cover_book_progress">Overlay Cloud Progress</string>
<string name="current_progress_exceeds_cloud">The current progress exceeds the cloud progress. Do you want to synchronize?</string>
<string name="cloud_progress_exceeds_current">The cloud progress exceeds the current progress. Do you want to synchronize?</string>
<string name="sync_book_progress_t">Synchronous reading progress</string>
<string name="sync_book_progress_s">Synchronize reading progress when entering / exiting the reading interface</string>
<string name="sync_book_progress_plus_t">Sync Enhancement</string>
<string name="sync_book_progress_plus_s">Sync cloud progress when re-entering the page (e.g., after screen off, returning from background, etc.) or when the network becomes available</string>
<string name="sync_book_progress_success">Sync progress success</string>
<string name="create_bookmark_error">Failed to create bookmark</string>
<string name="single_url">Single URL</string>
<string name="export_bookshelf">Export the list of books</string>