diff --git a/app/src/main/java/io/legado/app/help/config/AppConfig.kt b/app/src/main/java/io/legado/app/help/config/AppConfig.kt index ee57a52d7..86d93fc46 100644 --- a/app/src/main/java/io/legado/app/help/config/AppConfig.kt +++ b/app/src/main/java/io/legado/app/help/config/AppConfig.kt @@ -155,7 +155,7 @@ object AppConfig : SharedPreferences.OnSharedPreferenceChangeListener { get() = appCtx.getPrefBoolean(PreferKey.autoRefresh) var enableReview: Boolean - get() = appCtx.getPrefBoolean(PreferKey.enableReview, false) + get() = appCtx.getPrefBoolean(PreferKey.enableReview, false) && BuildConfig.DEBUG set(value) { appCtx.putPrefBoolean(PreferKey.enableReview, value) } 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 f3c1d286f..7b4598ebc 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 @@ -256,7 +256,10 @@ class ReadBookActivity : BaseReadBookActivity(), else -> when (item.itemId) { R.id.menu_enable_replace -> item.isChecked = book.getUseReplaceRule() R.id.menu_re_segment -> item.isChecked = book.getReSegment() - R.id.menu_enable_review -> item.isChecked = AppConfig.enableReview + R.id.menu_enable_review -> { + item.isVisible = BuildConfig.DEBUG + item.isChecked = AppConfig.enableReview + } R.id.menu_reverse_content -> item.isVisible = onLine } } diff --git a/app/src/main/res/menu/book_read.xml b/app/src/main/res/menu/book_read.xml index 32915270e..4f56cc6b0 100644 --- a/app/src/main/res/menu/book_read.xml +++ b/app/src/main/res/menu/book_read.xml @@ -72,23 +72,24 @@