pull/1222/head
gedoor 3 years ago
parent 3f2b35b28d
commit 4be6a5f67e
  1. 2
      app/src/main/java/io/legado/app/service/BaseReadAloudService.kt
  2. 1
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.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 {

@ -150,7 +150,6 @@ class ReadBookActivity : ReadBookBaseActivity(),
override fun onWindowFocusChanged(hasFocus: Boolean) {
super.onWindowFocusChanged(hasFocus)
binding.readView.upStyle()
upSystemUiVisibility()
}

Loading…
Cancel
Save