Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto scroll after update realm data #144

Open
Draptol opened this issue Apr 15, 2018 · 3 comments
Open

Auto scroll after update realm data #144

Draptol opened this issue Apr 15, 2018 · 3 comments

Comments

@Draptol
Copy link

Draptol commented Apr 15, 2018

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
Copy link

ryans233 commented Apr 25, 2018

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

@egorf
Copy link

egorf commented Mar 18, 2020

Any news on this?

@hkchakladar
Copy link

Is there any workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants