From c9099b5b5acc5ed469f406f8d25dbd16733bb18a Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 7 Sep 2019 22:20:51 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/readbook/ReadMenu.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 c9b15348a..eb6d67b29 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 @@ -111,6 +111,7 @@ class ReadMenu : FrameLayout { ) upBrightnessState() } + //亮度调节 seek_brightness.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener { override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) { setScreenBrightness(progress) @@ -200,11 +201,10 @@ class ReadMenu : FrameLayout { vw_menu_bg.onClick { runMenuOut() } val lp = vwNavigationBar.layoutParams lp.height = - if (context.getPrefBoolean("hideNavigationBar") and Help.isNavigationBarExist( - activity - ) - ) - context.getNavigationBarHeight() else 0 + if (context.getPrefBoolean("hideNavigationBar") + && Help.isNavigationBarExist(activity) + ) context.getNavigationBarHeight() + else 0 vwNavigationBar.layoutParams = lp }