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