优化
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user