mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixes
This commit is contained in:
parent
58d34b8294
commit
5516c8c32d
1 changed files with 18 additions and 21 deletions
|
@ -315,12 +315,9 @@ class SearchFragment : Fragment() {
|
||||||
arrayAdapter.notifyDataSetChanged()
|
arrayAdapter.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
val selectedSearchTypesFromDialog = DataStoreHelper.searchPreferenceTags
|
|
||||||
|
|
||||||
context?.filterProviderByPreferredMedia()?.let { validAPIs ->
|
|
||||||
bindChips(
|
bindChips(
|
||||||
selectMainpageBinding.tvtypesChipsScroll.tvtypesChips,
|
selectMainpageBinding.tvtypesChipsScroll.tvtypesChips,
|
||||||
selectedSearchTypesFromDialog,
|
selectedSearchTypes,
|
||||||
validAPIs.flatMap { api -> api.supportedTypes }.distinct()
|
validAPIs.flatMap { api -> api.supportedTypes }.distinct()
|
||||||
) { list ->
|
) { list ->
|
||||||
updateList(list)
|
updateList(list)
|
||||||
|
@ -338,7 +335,7 @@ class SearchFragment : Fragment() {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
cancelBtt?.setOnClickListener {
|
cancelBtt?.setOnClickListener {
|
||||||
dialog.dismissSafe()
|
dialog.dismissSafe()
|
||||||
|
@ -362,7 +359,7 @@ class SearchFragment : Fragment() {
|
||||||
// run search when dialog is close
|
// run search when dialog is close
|
||||||
search(binding?.mainSearch?.query?.toString())
|
search(binding?.mainSearch?.query?.toString())
|
||||||
}
|
}
|
||||||
updateList(selectedSearchTypesFromDialog.toList())
|
updateList(selectedSearchTypes.toList())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue