pull/48/head
kunfei 5 years ago
parent 1675992da0
commit d7478d50ba
  1. 3
      app/src/main/java/io/legado/app/service/AudioPlayService.kt

@ -23,7 +23,6 @@ import io.legado.app.constant.Status
import io.legado.app.help.IntentHelp import io.legado.app.help.IntentHelp
import io.legado.app.help.MediaHelp import io.legado.app.help.MediaHelp
import io.legado.app.receiver.MediaButtonReceiver import io.legado.app.receiver.MediaButtonReceiver
import io.legado.app.ui.book.read.ReadBookActivity
import io.legado.app.utils.LogUtils import io.legado.app.utils.LogUtils
import io.legado.app.utils.postEvent import io.legado.app.utils.postEvent
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
@ -323,7 +322,7 @@ class AudioPlayService : BaseService(),
.setContentTitle(nTitle) .setContentTitle(nTitle)
.setContentText(nSubtitle) .setContentText(nSubtitle)
.setContentIntent( .setContentIntent(
IntentHelp.activityPendingIntent<ReadBookActivity>(this, "activity") IntentHelp.activityPendingIntent<AudioPlayService>(this, "activity")
) )
if (pause) { if (pause) {
builder.addAction( builder.addAction(

Loading…
Cancel
Save