mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-09-10 20:43:14 +02:00
Update ChaptersController.kt
This commit is contained in:
parent
7b3556fcba
commit
098f9caa3a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user