From e834deeaf7fdce8461f78af027ede35cd519062f Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 22 Mar 2020 18:54:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/updateLog.md | 4 +++- app/src/main/java/io/legado/app/help/storage/Backup.kt | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 5e5d52454..8d8d924bc 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -3,8 +3,10 @@ * 请关注[开源阅读]()支持我,同时关注合作公众号[小说拾遗](),阅读公众号小编。 * 弄了个企业公众号[开源阅读](),后面弄好后会把原来的[开源阅读软件]()迁移过来 -**2020/03/21** +**2020/03/22** * 添加文件关联 by wqfantexi +* 手动排序可以了,在书架整理里面拖动排序 +* 删除分组时同时删除书籍里的分组信息,下次添加新分组时不会自动出现在分组内 **2020/03/21** * 详情页点击书名搜索 diff --git a/app/src/main/java/io/legado/app/help/storage/Backup.kt b/app/src/main/java/io/legado/app/help/storage/Backup.kt index 60d86d6a3..c47951385 100644 --- a/app/src/main/java/io/legado/app/help/storage/Backup.kt +++ b/app/src/main/java/io/legado/app/help/storage/Backup.kt @@ -31,11 +31,10 @@ object Backup { fun autoBack(context: Context) { val lastBackup = context.getPrefLong(PreferKey.lastBackup) if (lastBackup + TimeUnit.DAYS.toMillis(1) < System.currentTimeMillis()) { - return - } - Coroutine.async { - context.getPrefString(PreferKey.backupPath)?.let { - backup(context, it, true) + Coroutine.async { + context.getPrefString(PreferKey.backupPath)?.let { + backup(context, it, true) + } } } }