From f6e28c60367f516ae9196a3764449c00f7b42d60 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 7 Sep 2019 22:28:12 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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() } //亮度调节