pull/49/head
kunfei 5 years ago
parent 74cc21b8a5
commit 026a283bfb
  1. 3
      app/src/main/java/io/legado/app/service/BaseReadAloudService.kt

@ -36,7 +36,7 @@ abstract class BaseReadAloudService : BaseService(),
companion object { companion object {
var isRun = false var isRun = false
var timeMinute: Int = 0 var timeMinute: Int = 0
var pause = false var pause = true
fun isPlay(): Boolean { fun isPlay(): Boolean {
return isRun && !pause return isRun && !pause
@ -126,6 +126,7 @@ abstract class BaseReadAloudService : BaseService(),
} }
open fun play() { open fun play() {
pause = false
postEvent(Bus.ALOUD_STATE, Status.PLAY) postEvent(Bus.ALOUD_STATE, Status.PLAY)
upNotification() upNotification()
} }

Loading…
Cancel
Save