|
|
@ -75,7 +75,7 @@ abstract class BaseReadAloudService : BaseService(), |
|
|
|
postEvent(EventBus.ALOUD_STATE, Status.STOP) |
|
|
|
postEvent(EventBus.ALOUD_STATE, Status.STOP) |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_STOPPED) |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_STOPPED) |
|
|
|
mediaSessionCompat.release() |
|
|
|
mediaSessionCompat.release() |
|
|
|
ReadBook.upProgress() |
|
|
|
ReadBook.uploadProgress() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { |
|
|
|
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { |
|
|
@ -141,7 +141,7 @@ abstract class BaseReadAloudService : BaseService(), |
|
|
|
upNotification() |
|
|
|
upNotification() |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PAUSED) |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PAUSED) |
|
|
|
postEvent(EventBus.ALOUD_STATE, Status.PAUSE) |
|
|
|
postEvent(EventBus.ALOUD_STATE, Status.PAUSE) |
|
|
|
ReadBook.upProgress() |
|
|
|
ReadBook.uploadProgress() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@CallSuper |
|
|
|
@CallSuper |
|
|
|