pull/49/head
kunfei 5 years ago
parent cd1ff46929
commit 4b974aa962
  1. 1
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -65,6 +65,7 @@ class MainActivity : VMBaseActivity<MainViewModel>(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 }) {

Loading…
Cancel
Save