pull/473/head
gedoor 4 years ago
parent 58e56af9f3
commit 357c664d43
  1. 3
      app/src/main/java/io/legado/app/ui/association/ImportBookSourceDialog.kt
  2. 6
      app/src/main/java/io/legado/app/ui/association/ImportRssSourceDialog.kt

@ -130,7 +130,6 @@ class ImportBookSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickList
activity?.finish()
}
inner class SourcesAdapter(context: Context) :
SimpleRecyclerAdapter<BookSource>(context, R.layout.item_source_import) {
@ -158,4 +157,4 @@ class ImportBookSourceDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickList
}
}
}

@ -37,8 +37,7 @@ import org.jetbrains.anko.sdk27.listeners.onClick
class ImportRssSourcesDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickListener {
val viewModel: ImportRssSourceViewModel
get() =
getViewModelOfActivity(ImportRssSourceViewModel::class.java)
get() = getViewModelOfActivity(ImportRssSourceViewModel::class.java)
lateinit var adapter: SourcesAdapter
override fun onStart() {
@ -157,5 +156,4 @@ class ImportRssSourcesDialog : BaseDialogFragment(), Toolbar.OnMenuItemClickList
}
}
}
}
Loading…
Cancel
Save