1
0
Fork 0

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

master
Sören Hentzschel 2019-08-03 09:24:50 +02:00 committed by Emily Kager
parent 671727c3e8
commit bfd4849064
2 changed files with 13 additions and 0 deletions

View File

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

View File

@ -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()