pull/1171/head
gedoor 3 years ago
parent f1bbea129c
commit ee21407b00
  1. 4
      app/src/main/java/io/legado/app/ui/association/OnLineImportViewModel.kt

@ -1,7 +1,7 @@
package io.legado.app.ui.association
import android.app.Application
import androidx.lifecycle.MutableLiveData
import io.legado.app.App
import io.legado.app.R
import io.legado.app.base.BaseViewModel
import io.legado.app.data.appDb
@ -18,7 +18,7 @@ import io.legado.app.utils.fromJsonObject
import io.legado.app.utils.isJsonArray
import okhttp3.MediaType.Companion.toMediaType
class OnLineImportViewModel(app: App) : BaseViewModel(app) {
class OnLineImportViewModel(app: Application) : BaseViewModel(app) {
val successLive = MutableLiveData<Pair<String, String>>()
val errorLive = MutableLiveData<String>()

Loading…
Cancel
Save