pull/32/head
kunfei 5 years ago
parent cd400578a5
commit 0d92197b0b
  1. 2
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -288,7 +288,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
}
}
fun setScreenBrightness(value: Int) {
private fun setScreenBrightness(value: Int) {
var brightness = WindowManager.LayoutParams.BRIGHTNESS_OVERRIDE_NONE
if (this.getPrefBoolean("brightnessAuto").not()) {
brightness = value.toFloat()

Loading…
Cancel
Save