pull/32/head
kunfei 5 years ago
parent 966af854d8
commit c9099b5b5a
  1. 10
      app/src/main/java/io/legado/app/ui/readbook/ReadMenu.kt

@ -111,6 +111,7 @@ class ReadMenu : FrameLayout {
) )
upBrightnessState() upBrightnessState()
} }
//亮度调节
seek_brightness.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener { seek_brightness.setOnSeekBarChangeListener(object : SeekBar.OnSeekBarChangeListener {
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) { override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
setScreenBrightness(progress) setScreenBrightness(progress)
@ -200,11 +201,10 @@ class ReadMenu : FrameLayout {
vw_menu_bg.onClick { runMenuOut() } vw_menu_bg.onClick { runMenuOut() }
val lp = vwNavigationBar.layoutParams val lp = vwNavigationBar.layoutParams
lp.height = lp.height =
if (context.getPrefBoolean("hideNavigationBar") and Help.isNavigationBarExist( if (context.getPrefBoolean("hideNavigationBar")
activity && Help.isNavigationBarExist(activity)
) ) context.getNavigationBarHeight()
) else 0
context.getNavigationBarHeight() else 0
vwNavigationBar.layoutParams = lp vwNavigationBar.layoutParams = lp
} }

Loading…
Cancel
Save