From fa74b902755400fa216f6c01318e044aa3960df0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 19 Sep 2019 17:28:45 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/book/read/ReadBookActivity.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index 332c846f7..bfcebfff5 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/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,7 +525,9 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea override fun onDestroy() { super.onDestroy() - Backup.autoBackup() + if (!BuildConfig.DEBUG) { + Backup.autoBackup() + } } override fun observeLiveBus() {