mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user