Update ChaptersController.kt

This commit is contained in:
Jay 2019-12-05 22:11:19 -08:00
parent 7b3556fcba
commit 098f9caa3a

View File

@ -316,6 +316,7 @@ class ChaptersController() : NucleusController<ChaptersPresenter>(),
else -> setSelection(position)
}
lastClickPosition = position
adapter?.notifyDataSetChanged()
}
// SELECTIONS & ACTION MODE
@ -324,6 +325,7 @@ class ChaptersController() : NucleusController<ChaptersPresenter>(),
val adapter = adapter ?: return
val item = adapter.getItem(position) ?: return
adapter.toggleSelection(position)
adapter.notifyDataSetChanged()
if (adapter.isSelected(position)) {
selectedItems.add(item)
} else {