This commit is contained in:
Horis
2024-09-10 15:48:44 +08:00
parent 71038abbb8
commit caeee59849

View File

@@ -275,6 +275,7 @@ abstract class BaseReadAloudService : BaseService(),
isRun = true
pause = false
needResumeOnAudioFocusGain = false
needResumeOnCallStateIdle = false
upReadAloudNotification()
postEvent(EventBus.ALOUD_STATE, Status.PLAY)
}
@@ -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)