pull/1259/head
gedoor 3 years ago
parent 9e57896260
commit 6b560fabba
  1. 3
      app/src/main/java/io/legado/app/service/BaseReadAloudService.kt

@ -23,6 +23,7 @@ import io.legado.app.help.IntentHelp
import io.legado.app.help.MediaHelp
import io.legado.app.model.ReadBook
import io.legado.app.receiver.MediaButtonReceiver
import io.legado.app.service.help.ReadAloud
import io.legado.app.ui.book.read.ReadBookActivity
import io.legado.app.ui.book.read.page.entities.TextChapter
import io.legado.app.utils.getPrefBoolean
@ -212,7 +213,7 @@ abstract class BaseReadAloudService : BaseService(),
timeMinute--
}
if (timeMinute == 0) {
stopSelf()
ReadAloud.stop(this)
}
}
handler.removeCallbacks(dsRunnable)

Loading…
Cancel
Save