|
|
@ -68,7 +68,7 @@ abstract class BaseReadAloudService : BaseService(), |
|
|
|
initBroadcastReceiver() |
|
|
|
initBroadcastReceiver() |
|
|
|
upNotification() |
|
|
|
upNotification() |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PLAYING) |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PLAYING) |
|
|
|
doDs() |
|
|
|
resumeDs() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onDestroy() { |
|
|
|
override fun onDestroy() { |
|
|
@ -154,9 +154,7 @@ abstract class BaseReadAloudService : BaseService(), |
|
|
|
open fun resumeReadAloud() { |
|
|
|
open fun resumeReadAloud() { |
|
|
|
pause = false |
|
|
|
pause = false |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PLAYING) |
|
|
|
upMediaSessionPlaybackState(PlaybackStateCompat.STATE_PLAYING) |
|
|
|
if (timeMinute > 1) { |
|
|
|
resumeDs() |
|
|
|
doDs() |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
abstract fun upSpeechRate(reset: Boolean = false) |
|
|
|
abstract fun upSpeechRate(reset: Boolean = false) |
|
|
@ -206,6 +204,14 @@ abstract class BaseReadAloudService : BaseService(), |
|
|
|
upNotification() |
|
|
|
upNotification() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun resumeDs() { |
|
|
|
|
|
|
|
if (timeMinute > 1) { |
|
|
|
|
|
|
|
doDs() |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
timeMinute = 0 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 定时 |
|
|
|
* 定时 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|