mirror of
https://github.com/Michatec/Radio.git
synced 2026-11-16 08:51:37 +01:00
feat(ui): add keyboard shortcuts for station removal
This commit is contained in:
1 parent
48d14fecdb
commit
c3f37092de
1 file changed
+7
@@ -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