i have SearchView
in my RecyclerView
, user can delete the objects of this RecyclerView
but when user searches for anything and deletes a object from the results this is where am having problem , when the search is not active am using a DefaultArrayList
of Objects but when the searchBar is Active my result Objects are shown in another ArrayList named as FilteredArrayList
and when i delete an item from array list the object is got deleted from the FilteredArrayList
and from DataBase
but not from the DefaultArrayList
so when the search ends the same deleted file still remains at the DefaultArrayList
so any idea how can i notify the DefaultArrayList
that the Object is not exists anymore (which is still cached the DefaultArrayList
) ???
well i tried this :
myAdapterClass.notifyDataSetChanged();
but it's not doing the job