in my app I'm currently using retrofit and getting a list of movies based on a search query from the user. From there, the user can swipe the movie from the list that comes up to add it to their watchlist. I had this working with a normal RecyclerView and using an ArrayList, but since trying to migrate to the Paging Library, I'm struggling to figure out a clean and easy way to do this.
For the normal recycler view, the code was essentially just:
searchAdapter.removeAt(viewHolder.bindingAdapterPosition)
Is there some kind of similar way to do this for PagingDataAdapter? Like maybe a quick function I can plop in and then call in the onSwiped method? The idea is to be able to swipe it out of the search list since it's now in the watchlist and the user doesn't need to see it anymore. Thank you for any help.