pull/32/head
GKF 6 years ago
parent 57125f696e
commit aaef0d55cc
  1. 6
      app/src/main/java/io/legado/app/base/BaseViewModel.kt

@ -4,11 +4,9 @@ import android.app.Application
import androidx.lifecycle.AndroidViewModel
import kotlinx.coroutines.*
import org.jetbrains.anko.AnkoLogger
import kotlin.coroutines.CoroutineContext
open class BaseViewModel(application: Application) : AndroidViewModel(application), CoroutineScope, AnkoLogger {
override val coroutineContext: CoroutineContext
get() = Dispatchers.Main
open class BaseViewModel(application: Application) : AndroidViewModel(application),
CoroutineScope by MainScope(), AnkoLogger {
private val launchManager: MutableList<Job> = mutableListOf()

Loading…
Cancel
Save