From 4be6a5f67e500b14c2ddfd0a185485b8f9eecbca Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 9 Aug 2021 14:11:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/service/BaseReadAloudService.kt | 2 ++ .../main/java/io/legado/app/ui/book/read/ReadBookActivity.kt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt index a6c35c7ae..2e7e97227 100644 --- a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt @@ -1,5 +1,6 @@ package io.legado.app.service +import android.annotation.SuppressLint import android.app.PendingIntent import android.content.BroadcastReceiver import android.content.Context @@ -225,6 +226,7 @@ abstract class BaseReadAloudService : BaseService(), /** * 初始化MediaSession, 注册多媒体按钮 */ + @SuppressLint("UnspecifiedImmutableFlag") private fun initMediaSession() { mediaSessionCompat.setCallback(object : MediaSessionCompat.Callback() { override fun onMediaButtonEvent(mediaButtonEvent: Intent): Boolean { diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index d5e0705db..0e0152540 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -150,7 +150,6 @@ class ReadBookActivity : ReadBookBaseActivity(), override fun onWindowFocusChanged(hasFocus: Boolean) { super.onWindowFocusChanged(hasFocus) - binding.readView.upStyle() upSystemUiVisibility() }