From 4b974aa9628f7a2ab268c2db071d03a849de5389 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 18 Nov 2019 13:34:41 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/main/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) 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 ac81b3982..afec5bd47 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 @@ -65,6 +65,7 @@ class MainActivity : VMBaseActivity(R.layout.activity_main), private fun restore() { if (getPrefBoolean("dbChange")) { Restore.restore() + putPrefBoolean("dbChange", false) } else if (getPrefInt("versionCode") == 0) { launch { if (withContext(IO) { App.db.bookDao().allBookCount == 0 }) {