|
|
@ -124,16 +124,16 @@ abstract class BaseReadAloudService : BaseService(), |
|
|
|
|
|
|
|
|
|
|
|
open fun play() { |
|
|
|
open fun play() { |
|
|
|
pause = false |
|
|
|
pause = false |
|
|
|
postEvent(EventBus.ALOUD_STATE, Status.PLAY) |
|
|
|
|
|
|
|
upNotification() |
|
|
|
upNotification() |
|
|
|
|
|
|
|
postEvent(EventBus.ALOUD_STATE, Status.PLAY) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@CallSuper |
|
|
|
@CallSuper |
|
|
|
open fun pauseReadAloud(pause: Boolean) { |
|
|
|
open fun pauseReadAloud(pause: Boolean) { |
|
|
|
postEvent(EventBus.ALOUD_STATE, Status.PAUSE) |
|
|
|
|
|
|
|
BaseReadAloudService.pause = pause |
|
|
|
BaseReadAloudService.pause = pause |
|
|
|
upNotification() |
|
|
|
upNotification() |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PAUSED) |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PAUSED) |
|
|
|
|
|
|
|
postEvent(EventBus.ALOUD_STATE, Status.PAUSE) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@CallSuper |
|
|
|
@CallSuper |
|
|
|