For #1427 - enter multi select mode with single click on favicon in library

nightly-build-test
Sören Hentzschel 5 years ago committed by Emily Kager
parent 671727c3e8
commit bfd4849064

@ -57,5 +57,12 @@ class BookmarkItemViewHolder(
true true
} else false } else false
} }
containerView.iconView.setOnClickListener({
when {
selected -> interactor.deselect(item)
else -> interactor.select(item)
}
})
} }
} }

@ -35,6 +35,12 @@ class HistoryListItemViewHolder(
item?.also(historyInteractor::onItemPress) item?.also(historyInteractor::onItemPress)
} }
itemView.history_layout.iconView.setOnClickListener {
item?.apply {
historyInteractor.onItemLongPress(this)
}
}
itemView.delete_button.setOnClickListener { itemView.delete_button.setOnClickListener {
when (val mode = this.mode) { when (val mode = this.mode) {
HistoryState.Mode.Normal -> historyInteractor.onDeleteAll() HistoryState.Mode.Normal -> historyInteractor.onDeleteAll()

Loading…
Cancel
Save