feat: 优化代码

pull/238/head
gedoor 5 years ago
parent bac6d7d808
commit 95f8b57716
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -132,6 +132,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo
override fun onPause() { override fun onPause() {
super.onPause() super.onPause()
ReadBook.saveRead()
timeBatteryReceiver?.let { timeBatteryReceiver?.let {
unregisterReceiver(it) unregisterReceiver(it)
timeBatteryReceiver = null timeBatteryReceiver = null

Loading…
Cancel
Save