I have a problem with RealmRecyclerViewAdapter. After refreshing data (clearing previous data and adding new items to db) my recycler view scrolls to previously first item in the recycler view.
I suppose that it might be a problem because I remove all specific data and add new one to db so the recycler view adapter calls notifyItemRangeInserted after notifyItemRangeRemoved.
But I need to remove old data and insert new after user refreshes current list.
Hi,
I have a problem with RealmRecyclerViewAdapter. After refreshing data (clearing previous data and adding new items to db) my recycler view scrolls to previously first item in the recycler view.
I suppose that it might be a problem because I remove all specific data and add new one to db so the recycler view adapter calls notifyItemRangeInserted after notifyItemRangeRemoved.
But I need to remove old data and insert new after user refreshes current list.
Could you help me ?