修复书源导入bug

pull/849/head
gedoor 4 years ago
parent 6450093fa5
commit de64357570
  1. 4
      app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt
  2. 4
      app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt

@ -9,7 +9,7 @@ import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.Toolbar
import androidx.fragment.app.viewModels
import androidx.fragment.app.activityViewModels
import androidx.recyclerview.widget.LinearLayoutManager
import io.legado.app.R
import io.legado.app.base.BaseDialogFragment
@ -38,7 +38,7 @@ class ImportBookSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickList
private val binding by viewBinding(DialogRecyclerViewBinding::bind)
val viewModel: ImportBookSourceViewModel by viewModels()
val viewModel: ImportBookSourceViewModel by activityViewModels()
lateinit var adapter: SourcesAdapter
override fun onStart() {

@ -36,9 +36,7 @@ import io.legado.app.utils.visible
class ImportRssSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListener {
private val binding by viewBinding(DialogRecyclerViewBinding::bind)
val viewModel: ImportRssSourceViewModel
by activityViewModels()
val viewModel: ImportRssSourceViewModel by activityViewModels()
lateinit var adapter: SourcesAdapter
override fun onStart() {

Loading…
Cancel
Save