realm / realm-android-adapters

Adapters for combining Realm Java with Android UI components and framework classes
realm.io
Apache License 2.0
414 stars 134 forks source link

Auto scroll after update realm data #144

Open Draptol opened 6 years ago

Draptol commented 6 years ago

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 ?

ryans233 commented 6 years ago

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

egorf commented 4 years ago

Any news on this?

hkchakladar commented 11 months ago

Is there any workaround for this?