Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Sep 10, 2024
1 parent 71038ab commit caeee59
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ abstract class BaseReadAloudService : BaseService(),
isRun = true
pause = false
needResumeOnAudioFocusGain = false
needResumeOnCallStateIdle = false
upReadAloudNotification()
postEvent(EventBus.ALOUD_STATE, Status.PLAY)
}
Expand Down Expand Up @@ -302,6 +303,8 @@ abstract class BaseReadAloudService : BaseService(),
@CallSuper
open fun resumeReadAloud() {
pause = false
needResumeOnAudioFocusGain = false
needResumeOnCallStateIdle = false
upReadAloudNotification()
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PLAYING)
postEvent(EventBus.ALOUD_STATE, Status.PLAY)
Expand Down

0 comments on commit caeee59

Please sign in to comment.