realm-android-adapters icon indicating copy to clipboard operation
realm-android-adapters copied to clipboard

Auto scroll after update realm data

Open Draptol opened this issue 7 years ago • 3 comments

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 ?

Draptol avatar Apr 15 '18 23:04 Draptol

Same issue here. Update an object would makes RecyclerView scroll to position 0.

ryans233 avatar Apr 25 '18 07:04 ryans233

Any news on this?

egorf avatar Mar 18 '20 10:03 egorf

Is there any workaround for this?

hkchakladar avatar Nov 26 '23 19:11 hkchakladar