mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-11 05:59:10 +01:00
Add support for removal of items from GenericAdapter
This commit is contained in:
parent
0d1c7965df
commit
e93fdce845
@ -68,6 +68,11 @@ class GenericAdapter : RecyclerView.Adapter<GenericViewHolder<ViewBinding>>(), F
|
||||
filter.filter(currentSearchTerm)
|
||||
}
|
||||
|
||||
open fun removeItemAt(position : Int) {
|
||||
allItems.removeAt(position)
|
||||
filter.filter(currentSearchTerm)
|
||||
}
|
||||
|
||||
fun setOnFilterPublishedListener(listener : OnFilterPublishedListener) {
|
||||
onFilterPublishedListener = listener
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user