From 0bbb680971e4c8c75a43777fcd3149637999b122 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 20 May 2022 21:59:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt index 05562b93b..2be242fd6 100644 --- a/app/src/main/java/io/legado/app/ui/main/MainActivity.kt +++ b/app/src/main/java/io/legado/app/ui/main/MainActivity.kt @@ -99,10 +99,10 @@ class MainActivity : VMBaseActivity(), val lastBackupFile = withContext(IO) { AppWebDav.lastBackUp().getOrNull() } ?: return@launch if (lastBackupFile.lastModify - LocalConfig.lastBackup > DateUtils.MINUTE_IN_MILLIS) { - LocalConfig.lastBackup = lastBackupFile.lastModify alert("恢复", "webDav书源比本地新,是否恢复") { cancelButton() okButton { + LocalConfig.lastBackup = lastBackupFile.lastModify viewModel.restoreWebDav(lastBackupFile.displayName) } }