@ -131,6 +131,12 @@ object AudioPlay {
}
fun addTimer(context: Context) {
val intent = Intent(context, AudioPlayService::class.java)
intent.action = IntentAction.addTimer
context.startService(intent)
fun saveRead() {
Coroutine.async {
book?.let { book ->
@ -115,6 +115,9 @@ class AudioPlayActivity :
binding.ivFastRewind.onClick {
AudioPlay.adjustSpeed(this, -0.1f)
binding.ivTimer.onClick {
AudioPlay.addTimer(this)
private fun upCover(path: String?) {