From 053aced034e9eaa7d146f38e6d73b14d2b387a21 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 27 Aug 2019 14:29:31 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/readbook/ReadBookActivity.kt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index 629b69d9a..66af6e9aa 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -383,12 +383,8 @@ class ReadBookActivity : VMBaseActivity(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(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