pull/34/head
kunfei 5 years ago
parent 90c1c5c4cd
commit fa74b90275
  1. 3
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -13,6 +13,7 @@ import android.view.WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHO
import androidx.core.view.isVisible
import androidx.lifecycle.Observer
import com.jaredrummler.android.colorpicker.ColorPickerDialogListener
import io.legado.app.BuildConfig
import io.legado.app.R
import io.legado.app.base.VMBaseActivity
import io.legado.app.constant.Bus
@ -524,8 +525,10 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
override fun onDestroy() {
super.onDestroy()
if (!BuildConfig.DEBUG) {
Backup.autoBackup()
}
}
override fun observeLiveBus() {
super.observeLiveBus()

Loading…
Cancel
Save