diff --git a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt b/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt index bb9f8ab67..b34cef9cc 100644 --- a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceDialog.kt @@ -52,6 +52,7 @@ class ChangeSourceDialog : DialogFragment() { showTitle() initRecyclerView() initSearchView() + viewModel.startSearch() } override fun onStart() { diff --git a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt b/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt index d5e36c5e3..218a4868f 100644 --- a/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt +++ b/app/src/main/java/io/legado/app/ui/changesource/ChangeSourceViewModel.kt @@ -8,4 +8,8 @@ class ChangeSourceViewModel(application: Application) : BaseViewModel(applicatio var name: String = "" var author: String = "" + + fun startSearch() { + + } } \ No newline at end of file