pull/32/head
kunfei 5 years ago
parent befb8578fd
commit 053aced034
  1. 10
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -383,12 +383,8 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
val key = System.currentTimeMillis().toString()
IntentDataHelp.putData(key, textChapter)
ReadAloudService.play(
this,
book.name,
textChapter.title,
viewModel.durPageIndex,
key,
play
this, book.name, textChapter.title,
viewModel.durPageIndex, key, play
)
}
}
@ -401,7 +397,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
if (this.getPrefBoolean("brightnessAuto").not()) {
brightness = value.toFloat()
if (brightness < 1f) brightness = 1f
brightness = brightness * 1.0f / 255f
brightness /= 255f
}
val params = window.attributes
params.screenBrightness = brightness

Loading…
Cancel
Save