同步进度功能补充 (#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:
@@ -65,6 +65,12 @@
|
||||
android:visible="false"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_cover_progress"
|
||||
android:title="@string/cover_book_progress"
|
||||
android:visible="false"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_reverse_content"
|
||||
android:title="@string/reverse_content"
|
||||
|
||||
@@ -806,9 +806,12 @@
|
||||
<string name="rule_subscription">Suscripción de reglsa</string>
|
||||
<string name="rule_sub_empty_msg">添加大佬们提供的规则导入地址\n添加后点击可导入规则</string>
|
||||
<string name="get_book_progress">Obtener progreso en la nube</string>
|
||||
<string name="cover_book_progress">Cobertura del progreso en la nube</string>
|
||||
<string name="current_progress_exceeds_cloud">El progreso actual excede el progreso de la nube. ¿Quieres sincronizar?</string>
|
||||
<string name="sync_book_progress_t">Progreso de lectura sincronizado</string>
|
||||
<string name="sync_book_progress_s">Sincronizar el progreso de la lectura al entrar y salir de la pantalla de lectura</string>
|
||||
<string name="sync_book_progress_plus_t">Mejora de Sincronización</string>
|
||||
<string name="sync_book_progress_plus_s">Sincronizar el progreso en la nube al volver a entrar en la página (por ejemplo, tras apagar la pantalla o al regresar desde el fondo) o cuando la red esté disponible</string>
|
||||
<string name="create_bookmark_error">No se pudo marcar</string>
|
||||
<string name="single_url">URL única</string>
|
||||
<string name="export_bookshelf">Exportar lista de libros</string>
|
||||
@@ -1129,8 +1132,10 @@
|
||||
<string name="open_book_info_by_click_title">点击书名打开详情</string>
|
||||
<string name="export_wait">等待导出</string>
|
||||
<string name="default_home_page">默认主页</string>
|
||||
<string name="sync_book_progress_success">" Sincronización del progreso exitosa"</string>
|
||||
<string name="show_bookshelf_fast_scroller">显示快速滚动条</string>
|
||||
<string name="export_all_use_book_source">导出所有书的书源</string>
|
||||
<string name="cloud_progress_exceeds_current">The cloud progress exceeds the current progress. Do you want to synchronize?</string>
|
||||
<string name="keep_enable">保留启用状态</string>
|
||||
<string name="preview_image_by_click">点击预览图片</string>
|
||||
<string name="screen_portrait_reversed">反向竖屏</string>
|
||||
|
||||
@@ -808,10 +808,13 @@
|
||||
<string name="header_footer">footer <![CDATA[&]]> header</string>
|
||||
<string name="rule_subscription">Rule Subscription</string>
|
||||
<string name="rule_sub_empty_msg">添加大佬们提供的规则导入地址\n添加后点击可导入规则</string>
|
||||
<string name="get_book_progress">Pull the cloud progress</string>
|
||||
<string name="get_book_progress">クラウド上の進捗状況のカバー</string>
|
||||
<string name="cover_book_progress">Cobertura do progresso na nuvem</string>
|
||||
<string name="current_progress_exceeds_cloud">The current progress exceeds the cloud 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">同期強化</string>
|
||||
<string name="sync_book_progress_plus_s">ページに再入力する時(スリープ解除やバックグラウンドから復帰など)、またはネットワークが利用可能になるとクラウド進捗を同期します</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>
|
||||
@@ -1132,8 +1135,10 @@
|
||||
<string name="open_book_info_by_click_title">点击书名打开详情</string>
|
||||
<string name="export_wait">等待导出</string>
|
||||
<string name="default_home_page">默认主页</string>
|
||||
<string name="sync_book_progress_success">Sync progress success</string>
|
||||
<string name="show_bookshelf_fast_scroller">显示快速滚动条</string>
|
||||
<string name="export_all_use_book_source">导出所有书的书源</string>
|
||||
<string name="cloud_progress_exceeds_current">The cloud progress exceeds the current progress. Do you want to synchronize?</string>
|
||||
<string name="keep_enable">保留启用状态</string>
|
||||
<string name="preview_image_by_click">点击预览图片</string>
|
||||
<string name="screen_portrait_reversed">反向竖屏</string>
|
||||
|
||||
@@ -807,9 +807,12 @@
|
||||
<string name="rule_subscription">Assinatura de regras</string>
|
||||
<string name="rule_sub_empty_msg">添加大佬们提供的规则导入地址\n添加后点击可导入规则</string>
|
||||
<string name="get_book_progress">Obter o progresso da nuvem</string>
|
||||
<string name="cover_book_progress">Phủ sóng tiến độ trên đám mây</string>
|
||||
<string name="current_progress_exceeds_cloud">O progresso atual excede o progresso da nuvem. Você quer sincronizar?</string>
|
||||
<string name="sync_book_progress_t">Progresso de leitura sincronizada</string>
|
||||
<string name="sync_book_progress_s">Sincronizar o progresso da leitura ao entrar e sair da tela de leitura</string>
|
||||
<string name="sync_book_progress_plus_t">Aprimoramento de Sincronização</string>
|
||||
<string name="sync_book_progress_plus_s">Sincronizar o progresso na nuvem ao reentrar na página (por exemplo, após desligar a tela ou ao retornar do fundo) ou quando a rede estiver disponível</string>
|
||||
<string name="create_bookmark_error">Falha ao marcar como favorito</string>
|
||||
<string name="single_url">URL única</string>
|
||||
<string name="export_bookshelf">Exportar a lista de livros</string>
|
||||
@@ -1132,8 +1135,10 @@
|
||||
<string name="open_book_info_by_click_title">点击书名打开详情</string>
|
||||
<string name="export_wait">等待导出</string>
|
||||
<string name="default_home_page">默认主页</string>
|
||||
<string name="sync_book_progress_success">Sincronização de progresso bem-sucedida</string>
|
||||
<string name="show_bookshelf_fast_scroller">显示快速滚动条</string>
|
||||
<string name="export_all_use_book_source">导出所有书的书源</string>
|
||||
<string name="cloud_progress_exceeds_current">The cloud progress exceeds the current progress. Do you want to synchronize?</string>
|
||||
<string name="keep_enable">保留启用状态</string>
|
||||
<string name="preview_image_by_click">点击预览图片</string>
|
||||
<string name="screen_portrait_reversed">反向竖屏</string>
|
||||
|
||||
@@ -808,9 +808,12 @@ Còn </string>
|
||||
<string name="rule_subscription">Quy tắc đăng ký</string>
|
||||
<string name="rule_sub_empty_msg">Thêm địa chỉ nhập quy tắc do các ông chủ cung cấp\\nNhấp để nhập quy tắc sau khi thêm</string>
|
||||
<string name="get_book_progress">Kéo tiến độ đám mây</string>
|
||||
<string name="cover_book_progress">Phủ sóng tiến độ trên đám mây</string>
|
||||
<string name="current_progress_exceeds_cloud">Tiến độ hiện tại vượt quá tiến độ đám mây. Bạn có muốn đồng bộ hóa?</string>
|
||||
<string name="sync_book_progress_t">Tiến độ đọc đồng bộ</string>
|
||||
<string name="sync_book_progress_s">Đồng bộ tiến độ đọc khi vào/ra khỏi giao diện đọc</string>
|
||||
<string name="sync_book_progress_plus_t">Cải Tiến Đồng Bộ</string>
|
||||
<string name="sync_book_progress_plus_s">Đồng bộ tiến độ trên đám mây khi quay lại trang (ví dụ: sau khi tắt màn hình, quay trở lại từ nền, v.v.) hoặc khi mạng trở nên khả dụng</string>
|
||||
<string name="create_bookmark_error">Không thể tạo dấu trang</string>
|
||||
<string name="single_url">URL đơn</string>
|
||||
<string name="export_bookshelf">Xuất bookshelf</string>
|
||||
@@ -1127,9 +1130,11 @@ Còn </string>
|
||||
<string name="change_source_delay">换源间隔</string>
|
||||
<string name="open_book_info_by_click_title">点击书名打开详情</string>
|
||||
<string name="export_wait">等待导出</string>
|
||||
<string name="sync_book_progress_success">" Đồng bộ hóa tiến trình thành công"</string>
|
||||
<string name="default_home_page">默认主页</string>
|
||||
<string name="show_bookshelf_fast_scroller">显示快速滚动条</string>
|
||||
<string name="export_all_use_book_source">导出所有书的书源</string>
|
||||
<string name="cloud_progress_exceeds_current">The cloud progress exceeds the current progress. Do you want to synchronize?</string>
|
||||
<string name="keep_enable">保留启用状态</string>
|
||||
<string name="preview_image_by_click">点击预览图片</string>
|
||||
<string name="screen_portrait_reversed">反向竖屏</string>
|
||||
|
||||
@@ -807,9 +807,12 @@
|
||||
<string name="rule_subscription">規則訂閱</string>
|
||||
<string name="rule_sub_empty_msg">添加大佬們提供的規則匯入地址 添加後點擊可匯入規則</string>
|
||||
<string name="get_book_progress">拉取雲端進度</string>
|
||||
<string name="cover_book_progress">覆蓋雲端進度</string>
|
||||
<string name="current_progress_exceeds_cloud">目前進度超過雲端進度,係咪同步?</string>
|
||||
<string name="sync_book_progress_t">同步閱讀進度</string>
|
||||
<string name="sync_book_progress_s">進入退出閱讀介面時同步閱讀進度</string>
|
||||
<string name="sync_book_progress_plus_t">同步增強</string>
|
||||
<string name="sync_book_progress_plus_s">重新進入頁面(熄屏、返回背景等)或者當網絡可用時同步雲端進度</string>
|
||||
<string name="create_bookmark_error">建立書籤失敗</string>
|
||||
<string name="single_url">單URL</string>
|
||||
<string name="export_bookshelf">導出書單</string>
|
||||
@@ -1128,9 +1131,11 @@
|
||||
<string name="change_source_delay">换源间隔</string>
|
||||
<string name="open_book_info_by_click_title">点击书名打开详情</string>
|
||||
<string name="export_wait">等待导出</string>
|
||||
<string name="sync_book_progress_success">進度同步成功</string>
|
||||
<string name="default_home_page">默认主页</string>
|
||||
<string name="show_bookshelf_fast_scroller">显示快速滚动条</string>
|
||||
<string name="export_all_use_book_source">导出所有书的书源</string>
|
||||
<string name="cloud_progress_exceeds_current">雲端進度超過目前進度,是否同步?</string>
|
||||
<string name="keep_enable">保留启用状态</string>
|
||||
<string name="preview_image_by_click">点击预览图片</string>
|
||||
<string name="screen_portrait_reversed">反向竖屏</string>
|
||||
|
||||
@@ -810,9 +810,12 @@
|
||||
<string name="rule_subscription">規則訂閱</string>
|
||||
<string name="rule_sub_empty_msg">新增大佬們提供的規則匯入地址\n新增後點擊可匯入規則</string>
|
||||
<string name="get_book_progress">拉取雲端進度</string>
|
||||
<string name="cover_book_progress">覆蓋雲端進度</string>
|
||||
<string name="current_progress_exceeds_cloud">目前進度超過雲端進度,是否同步?</string>
|
||||
<string name="sync_book_progress_t">同步閱讀進度</string>
|
||||
<string name="sync_book_progress_s">進入退出閱讀介面時同步閱讀進度</string>
|
||||
<string name="sync_book_progress_plus_t">同步增強</string>
|
||||
<string name="sync_book_progress_plus_s">重新進入頁面(熄屏、背景返回等)或網路變為可用時同步雲端進度</string>
|
||||
<string name="create_bookmark_error">建立書籤失敗</string>
|
||||
<string name="single_url">單URL</string>
|
||||
<string name="export_bookshelf">匯出書單</string>
|
||||
@@ -1130,9 +1133,11 @@
|
||||
<string name="change_source_delay">换源间隔</string>
|
||||
<string name="open_book_info_by_click_title">点击书名打开详情</string>
|
||||
<string name="export_wait">等待导出</string>
|
||||
<string name="sync_book_progress_success">進度同步成功</string>
|
||||
<string name="default_home_page">默认主页</string>
|
||||
<string name="show_bookshelf_fast_scroller">显示快速滚动条</string>
|
||||
<string name="export_all_use_book_source">导出所有书的书源</string>
|
||||
<string name="cloud_progress_exceeds_current">雲端進度超過目前進度,是否同步?</string>
|
||||
<string name="keep_enable">保留启用状态</string>
|
||||
<string name="preview_image_by_click">点击预览图片</string>
|
||||
<string name="screen_portrait_reversed">反向竖屏</string>
|
||||
|
||||
@@ -813,9 +813,12 @@
|
||||
<string name="rule_subscription">规则订阅</string>
|
||||
<string name="rule_sub_empty_msg">添加大佬们提供的规则导入地址\n添加后点击可导入规则</string>
|
||||
<string name="get_book_progress">拉取云端进度</string>
|
||||
<string name="cover_book_progress">覆盖云端进度</string>
|
||||
<string name="current_progress_exceeds_cloud">当前进度超过云端进度,是否同步?</string>
|
||||
<string name="sync_book_progress_t">同步阅读进度</string>
|
||||
<string name="sync_book_progress_s">进入退出阅读界面时同步阅读进度</string>
|
||||
<string name="sync_book_progress_plus_t">同步增强</string>
|
||||
<string name="sync_book_progress_plus_s">重新进入页面(息屏、后台返回等)或者网络变为可用时同步云端进度</string>
|
||||
<string name="create_bookmark_error">创建书签失败</string>
|
||||
<string name="single_url">单 URL</string>
|
||||
<string name="export_bookshelf">导出书单</string>
|
||||
@@ -1130,9 +1133,11 @@
|
||||
<string name="change_source_delay">换源间隔</string>
|
||||
<string name="open_book_info_by_click_title">点击书名打开详情</string>
|
||||
<string name="export_wait">等待导出</string>
|
||||
<string name="sync_book_progress_success">进度同步成功</string>
|
||||
<string name="default_home_page">默认主页</string>
|
||||
<string name="show_bookshelf_fast_scroller">显示快速滚动条</string>
|
||||
<string name="export_all_use_book_source">导出所有书的书源</string>
|
||||
<string name="cloud_progress_exceeds_current">云端进度超过当前进度,是否同步?</string>
|
||||
<string name="keep_enable">保留启用状态</string>
|
||||
<string name="preview_image_by_click">点击预览图片</string>
|
||||
<string name="screen_portrait_reversed">反向竖屏</string>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -50,6 +50,16 @@
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
<io.legado.app.lib.prefs.SwitchPreference
|
||||
android:key="syncBookProgressPlus"
|
||||
android:defaultValue="false"
|
||||
android:title="@string/sync_book_progress_plus_t"
|
||||
android:summary="@string/sync_book_progress_plus_s"
|
||||
android:dependency="syncBookProgress"
|
||||
app:allowDividerAbove="false"
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
</io.legado.app.lib.prefs.PreferenceCategory>
|
||||
|
||||
<io.legado.app.lib.prefs.PreferenceCategory
|
||||
|
||||
Reference in New Issue
Block a user