|
|
|
@ -85,8 +85,10 @@ class ReadMenu @JvmOverloads constructor( |
|
|
|
|
vwBg.setOnClickListener(null) |
|
|
|
|
vwNavigationBar.setOnClickListener(null) |
|
|
|
|
llBrightness.setOnClickListener(null) |
|
|
|
|
seekBrightness.post { |
|
|
|
|
seekBrightness.progress = AppConfig.readBrightness |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fun upBrightnessState() { |
|
|
|
|
if (brightnessAuto()) { |
|
|
|
@ -152,8 +154,10 @@ class ReadMenu @JvmOverloads constructor( |
|
|
|
|
seekBrightness.setOnSeekBarChangeListener(object : SeekBarChangeListener { |
|
|
|
|
|
|
|
|
|
override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { |
|
|
|
|
if (fromUser) { |
|
|
|
|
setScreenBrightness(progress) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
override fun onStopTrackingTouch(seekBar: SeekBar) { |
|
|
|
|
AppConfig.readBrightness = seekBar.progress |
|
|
|
|