pull/457/head
gedoor 4 years ago
parent 7588bf0c1e
commit 052ea4818e
  1. 1
      app/src/main/java/io/legado/app/constant/PreferKey.kt
  2. 6
      app/src/main/java/io/legado/app/help/AppConfig.kt

@ -52,6 +52,7 @@ object PreferKey {
const val replaceEnableDefault = "replaceEnableDefault"
const val showBrightnessView = "showBrightnessView"
const val autoClearExpired = "autoClearExpired"
const val autoChangeSource = "autoChangeSource"
const val cPrimary = "colorPrimary"
const val cAccent = "colorAccent"

@ -120,9 +120,11 @@ object AppConfig {
App.INSTANCE.putPrefInt(PreferKey.barElevation, value)
}
val autoChangeSource: Boolean get() = App.INSTANCE.getPrefBoolean("autoChangeSource", true)
val autoChangeSource: Boolean
get() = App.INSTANCE.getPrefBoolean(PreferKey.autoChangeSource, true)
val readBodyToLh: Boolean get() = App.INSTANCE.getPrefBoolean(PreferKey.readBodyToLh, true)
val readBodyToLh: Boolean
get() = App.INSTANCE.getPrefBoolean(PreferKey.readBodyToLh, true)
fun upReplaceEnableDefault() {
replaceEnableDefault =

Loading…
Cancel
Save