Update ChaptersController.kt
This commit is contained in:
parent
7b3556fcba
commit
098f9caa3a
@ -316,6 +316,7 @@ class ChaptersController() : NucleusController<ChaptersPresenter>(),
|
|||||||
else -> setSelection(position)
|
else -> setSelection(position)
|
||||||
}
|
}
|
||||||
lastClickPosition = position
|
lastClickPosition = position
|
||||||
|
adapter?.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
// SELECTIONS & ACTION MODE
|
// SELECTIONS & ACTION MODE
|
||||||
@ -324,6 +325,7 @@ class ChaptersController() : NucleusController<ChaptersPresenter>(),
|
|||||||
val adapter = adapter ?: return
|
val adapter = adapter ?: return
|
||||||
val item = adapter.getItem(position) ?: return
|
val item = adapter.getItem(position) ?: return
|
||||||
adapter.toggleSelection(position)
|
adapter.toggleSelection(position)
|
||||||
|
adapter.notifyDataSetChanged()
|
||||||
if (adapter.isSelected(position)) {
|
if (adapter.isSelected(position)) {
|
||||||
selectedItems.add(item)
|
selectedItems.add(item)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user