From 68ccd246810b8ff641b41dcd7610edef15ac6b0b Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 11 Jul 2021 11:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A8=8B=E5=BA=8F=E7=BB=93?= =?UTF-8?q?=E6=9D=9F=E5=88=A4=E6=96=AD,=E6=89=80=E6=9C=89activity=E5=92=8C?= =?UTF-8?q?service=E9=83=BD=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/LifecycleHelp.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/help/LifecycleHelp.kt b/app/src/main/java/io/legado/app/help/LifecycleHelp.kt index 59cf0564a..ee3858803 100644 --- a/app/src/main/java/io/legado/app/help/LifecycleHelp.kt +++ b/app/src/main/java/io/legado/app/help/LifecycleHelp.kt @@ -4,6 +4,7 @@ import android.app.Activity import android.app.Application import android.os.Bundle import io.legado.app.base.BaseService +import io.legado.app.help.coroutine.Coroutine import io.legado.app.utils.LanguageUtils import java.lang.ref.WeakReference import java.util.* @@ -110,6 +111,7 @@ object LifecycleHelp : Application.ActivityLifecycleCallbacks { } private fun onFinished() { + Coroutine.cancel() finishedListener?.invoke() } } \ No newline at end of file