mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-17 23:27:55 +03: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)
|
filter.filter(currentSearchTerm)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open fun removeItemAt(position : Int) {
|
||||||
|
allItems.removeAt(position)
|
||||||
|
filter.filter(currentSearchTerm)
|
||||||
|
}
|
||||||
|
|
||||||
fun setOnFilterPublishedListener(listener : OnFilterPublishedListener) {
|
fun setOnFilterPublishedListener(listener : OnFilterPublishedListener) {
|
||||||
onFilterPublishedListener = listener
|
onFilterPublishedListener = listener
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user