mirror of
https://github.com/Michatec/Radio.git
synced 2026-03-31 23:46:28 +02:00
feat(ui): add keyboard shortcuts for station removal
This commit is contained in:
@@ -425,6 +425,13 @@ class CollectionAdapter(
|
|||||||
return@setOnKeyListener true
|
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
|
false
|
||||||
|
|||||||
Reference in New Issue
Block a user