pull/525/head
gedoor 4 years ago
parent d0971faadf
commit 4ac2e38875
  1. 4
      app/src/main/java/io/legado/app/receiver/MediaButtonReceiver.kt

@ -69,10 +69,10 @@ class MediaButtonReceiver : BroadcastReceiver() {
} else {
AudioPlay.pause(context)
}
ActivityHelp.isExist(AudioPlayActivity::class.java) ->
postEvent(EventBus.MEDIA_BUTTON, true)
ActivityHelp.isExist(ReadBookActivity::class.java) ->
postEvent(EventBus.MEDIA_BUTTON, true)
ActivityHelp.isExist(AudioPlayActivity::class.java) ->
postEvent(EventBus.MEDIA_BUTTON, true)
else -> if (context.getPrefBoolean("mediaButtonOnExit", true)) {
GlobalScope.launch(Main) {
val lastBook: Book? = withContext(IO) {

Loading…
Cancel
Save