pull/1835/head 3.22.050122
kunfei 3 years ago
parent dfbeb3797b
commit fe2f4d2c7a
  1. 10
      app/src/main/java/io/legado/app/ui/main/MainActivity.kt

@ -185,18 +185,14 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(),
return super.onKeyUp(keyCode, event) return super.onKeyUp(keyCode, event)
} }
override fun onPause() {
super.onPause()
if (!BuildConfig.DEBUG) {
Backup.autoBack(this)
}
}
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
Coroutine.async { Coroutine.async {
BookHelp.clearInvalidCache() BookHelp.clearInvalidCache()
} }
if (!BuildConfig.DEBUG) {
Backup.autoBack(this)
}
} }
override fun observeLiveBus() { override fun observeLiveBus() {

Loading…
Cancel
Save