This commit is contained in:
parent
b498f5559b
commit
edc1422b68
|
@ -56,7 +56,6 @@ class CollectionCreationTabListAdapter(
|
||||||
override fun onBindViewHolder(holder: TabViewHolder, position: Int) {
|
override fun onBindViewHolder(holder: TabViewHolder, position: Int) {
|
||||||
val tab = tabs[position]
|
val tab = tabs[position]
|
||||||
val isSelected = selectedTabs.contains(tab)
|
val isSelected = selectedTabs.contains(tab)
|
||||||
holder.bind(tab, isSelected, hideCheckboxes)
|
|
||||||
holder.view.tab_selected_checkbox.setOnCheckedChangeListener { _, isChecked ->
|
holder.view.tab_selected_checkbox.setOnCheckedChangeListener { _, isChecked ->
|
||||||
val action = if (isChecked) {
|
val action = if (isChecked) {
|
||||||
selectedTabs.add(tab)
|
selectedTabs.add(tab)
|
||||||
|
@ -67,6 +66,7 @@ class CollectionCreationTabListAdapter(
|
||||||
}
|
}
|
||||||
actionEmitter.onNext(action)
|
actionEmitter.onNext(action)
|
||||||
}
|
}
|
||||||
|
holder.bind(tab, isSelected, hideCheckboxes)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getItemCount(): Int = tabs.size
|
override fun getItemCount(): Int = tabs.size
|
||||||
|
|
Loading…
Reference in New Issue
Block a user