|
|
@ -4,7 +4,6 @@ import android.app.Activity |
|
|
|
import android.app.Application |
|
|
|
import android.app.Application |
|
|
|
import android.os.Bundle |
|
|
|
import android.os.Bundle |
|
|
|
import io.legado.app.base.BaseService |
|
|
|
import io.legado.app.base.BaseService |
|
|
|
import io.legado.app.help.coroutine.Coroutine |
|
|
|
|
|
|
|
import io.legado.app.utils.LanguageUtils |
|
|
|
import io.legado.app.utils.LanguageUtils |
|
|
|
import java.lang.ref.WeakReference |
|
|
|
import java.lang.ref.WeakReference |
|
|
|
import java.util.* |
|
|
|
import java.util.* |
|
|
@ -111,7 +110,6 @@ object LifecycleHelp : Application.ActivityLifecycleCallbacks { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun onFinished() { |
|
|
|
private fun onFinished() { |
|
|
|
Coroutine.cancel() |
|
|
|
|
|
|
|
finishedListener?.invoke() |
|
|
|
finishedListener?.invoke() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |