pull/2449/head
kunfei 2 years ago
parent 73b72d8e6e
commit b6240d2839
  1. 4
      app/src/main/java/io/legado/app/ui/book/search/SearchScopeDialog.kt

@ -187,11 +187,13 @@ class SearchScopeDialog : BaseDialogFragment(R.layout.dialog_search_scope) {
} else { } else {
selectGroups.remove(it) selectGroups.remove(it)
} }
buttonView.post {
notifyItemRangeChanged(0, itemCount, "up") notifyItemRangeChanged(0, itemCount, "up")
} }
} }
} }
} }
}
is ItemRadioButtonBinding -> { is ItemRadioButtonBinding -> {
screenSources.getOrNull(position)?.let { screenSources.getOrNull(position)?.let {
holder.binding.radioButton.isChecked = selectSource == it holder.binding.radioButton.isChecked = selectSource == it
@ -201,6 +203,7 @@ class SearchScopeDialog : BaseDialogFragment(R.layout.dialog_search_scope) {
if (isChecked) { if (isChecked) {
selectSource = it selectSource = it
} }
buttonView.post {
notifyItemRangeChanged(0, itemCount, "up") notifyItemRangeChanged(0, itemCount, "up")
} }
} }
@ -208,6 +211,7 @@ class SearchScopeDialog : BaseDialogFragment(R.layout.dialog_search_scope) {
} }
} }
} }
}
override fun getItemCount(): Int { override fun getItemCount(): Int {
return if (binding.rbSource.isChecked) { return if (binding.rbSource.isChecked) {

Loading…
Cancel
Save