diff --git a/app/src/main/java/emu/skyline/adapter/GenericAdapter.kt b/app/src/main/java/emu/skyline/adapter/GenericAdapter.kt index 8e4b47ee..251c90c8 100644 --- a/app/src/main/java/emu/skyline/adapter/GenericAdapter.kt +++ b/app/src/main/java/emu/skyline/adapter/GenericAdapter.kt @@ -68,6 +68,11 @@ class GenericAdapter : RecyclerView.Adapter>(), F filter.filter(currentSearchTerm) } + open fun removeItemAt(position : Int) { + allItems.removeAt(position) + filter.filter(currentSearchTerm) + } + fun setOnFilterPublishedListener(listener : OnFilterPublishedListener) { onFilterPublishedListener = listener }