pull/1272/head
gedoor 4 years ago
parent 2cca0e9974
commit 79272f16d4
  1. 2
      app/src/main/java/io/legado/app/service/BaseReadAloudService.kt

@ -208,6 +208,7 @@ abstract class BaseReadAloudService : BaseService(),
* 定时 * 定时
*/ */
private fun doDs() { private fun doDs() {
handler.removeCallbacks(dsRunnable)
if (!pause) { if (!pause) {
if (timeMinute >= 0) { if (timeMinute >= 0) {
timeMinute-- timeMinute--
@ -216,7 +217,6 @@ abstract class BaseReadAloudService : BaseService(),
ReadAloud.stop(this) ReadAloud.stop(this)
} }
} }
handler.removeCallbacks(dsRunnable)
handler.postDelayed(dsRunnable, 60000) handler.postDelayed(dsRunnable, 60000)
postEvent(EventBus.TTS_DS, timeMinute) postEvent(EventBus.TTS_DS, timeMinute)
upNotification() upNotification()

Loading…
Cancel
Save