pull/34/head
kunfei 5 years ago
parent 90c1c5c4cd
commit fa74b90275
  1. 5
      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.core.view.isVisible
import androidx.lifecycle.Observer import androidx.lifecycle.Observer
import com.jaredrummler.android.colorpicker.ColorPickerDialogListener import com.jaredrummler.android.colorpicker.ColorPickerDialogListener
import io.legado.app.BuildConfig
import io.legado.app.R import io.legado.app.R
import io.legado.app.base.VMBaseActivity import io.legado.app.base.VMBaseActivity
import io.legado.app.constant.Bus import io.legado.app.constant.Bus
@ -524,7 +525,9 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
Backup.autoBackup() if (!BuildConfig.DEBUG) {
Backup.autoBackup()
}
} }
override fun observeLiveBus() { override fun observeLiveBus() {

Loading…
Cancel
Save