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