diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt index dccdce01e..2d42e0d70 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt @@ -105,10 +105,7 @@ class ReadMenu : FrameLayout { private fun bindEvent() { iv_brightness_auto.onClick { - context.putPrefBoolean( - "brightnessAuto", - !brightnessAuto() - ) + context.putPrefBoolean("brightnessAuto", !brightnessAuto()) upBrightnessState() } //亮度调节