From 6b560fabbafaa7a5968fec88bc978192907de828 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 22 Aug 2021 09:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/service/BaseReadAloudService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt b/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt index c7eb76132..8ddee50f8 100644 --- a/app/src/main/java/io/legado/app/service/BaseReadAloudService.kt +++ b/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)