优化
This commit is contained in:
1 parent
d26a2733e0
commit
975f26c9f6
1 file changed
+4
@@ -187,11 +187,13 @@ class SearchScopeDialog : BaseDialogFragment(R.layout.dialog_search_scope) {
|
||||
} else {
|
||||
selectGroups.remove(it)
|
||||
}
|
||||
buttonView.post {
|
||||
notifyItemRangeChanged(0, itemCount, "up")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
is ItemRadioButtonBinding -> {
|
||||
screenSources.getOrNull(position)?.let {
|
||||
holder.binding.radioButton.isChecked = selectSource == it
|
||||
@@ -201,6 +203,7 @@ class SearchScopeDialog : BaseDialogFragment(R.layout.dialog_search_scope) {
|
||||
if (isChecked) {
|
||||
selectSource = it
|
||||
}
|
||||
buttonView.post {
|
||||
notifyItemRangeChanged(0, itemCount, "up")
|
||||
}
|
||||
}
|
||||
@@ -208,6 +211,7 @@ class SearchScopeDialog : BaseDialogFragment(R.layout.dialog_search_scope) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun getItemCount(): Int {
|
||||
return if (binding.rbSource.isChecked) {
|
||||
|
||||
Reference in new issue
Block a user