Skip to content

Commit

Permalink
Update ChaptersController.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jays2Kings committed Dec 6, 2019
1 parent 7b3556f commit 098f9ca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ class ChaptersController() : NucleusController<ChaptersPresenter>(),
else -> setSelection(position)
}
lastClickPosition = position
adapter?.notifyDataSetChanged()
}

// SELECTIONS & ACTION MODE
Expand All @@ -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 {
Expand Down

0 comments on commit 098f9ca

Please sign in to comment.