|
|
|
@ -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() |
|
|
|
|
} |
|
|
|
|
} |