|
|
@ -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 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|