For #1427 - enter multi select mode with single click on favicon in library
This commit is contained in:
parent
671727c3e8
commit
bfd4849064
|
@ -57,5 +57,12 @@ class BookmarkItemViewHolder(
|
|||
true
|
||||
} else false
|
||||
}
|
||||
|
||||
containerView.iconView.setOnClickListener({
|
||||
when {
|
||||
selected -> interactor.deselect(item)
|
||||
else -> interactor.select(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,6 +35,12 @@ class HistoryListItemViewHolder(
|
|||
item?.also(historyInteractor::onItemPress)
|
||||
}
|
||||
|
||||
itemView.history_layout.iconView.setOnClickListener {
|
||||
item?.apply {
|
||||
historyInteractor.onItemLongPress(this)
|
||||
}
|
||||
}
|
||||
|
||||
itemView.delete_button.setOnClickListener {
|
||||
when (val mode = this.mode) {
|
||||
HistoryState.Mode.Normal -> historyInteractor.onDeleteAll()
|
||||
|
|
Loading…
Reference in New Issue