mirror of
https://github.com/Michatec/Radio.git
synced 2026-04-01 16:06:27 +02:00
feat(ui): add keyboard shortcuts for station removal
This commit is contained in:
@@ -425,6 +425,13 @@ class CollectionAdapter(
|
||||
return@setOnKeyListener true
|
||||
}
|
||||
}
|
||||
KeyEvent.KEYCODE_NUMPAD_0, KeyEvent.KEYCODE_0, KeyEvent.KEYCODE_DEL -> {
|
||||
if (expandedStationPosition == stationViewHolder.bindingAdapterPosition) {
|
||||
toggleEditViews(stationViewHolder.bindingAdapterPosition, station.uuid)
|
||||
}
|
||||
removeStation(context, stationViewHolder.bindingAdapterPosition)
|
||||
return@setOnKeyListener true
|
||||
}
|
||||
}
|
||||
}
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user