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

Fix scroll position getting reset after config changes #273

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

msasikanth
Copy link
Owner

fixes #271

I don't know why I decided to do it in on lifecycle on create. That ended up calling this `init` every time home screen presenter is created. Which means the paging cache is not used. Instead we are using the presenter instance class init to trigger subscribing to cached paging flow which fixes the scroll position getting reset of config changes. Weirdly it doesn't fix scroll position getting reset for navigation. Will have to check separately and resolve it in a different PR.
@msasikanth msasikanth enabled auto-merge (squash) February 2, 2024 11:51
@msasikanth msasikanth enabled auto-merge (squash) February 2, 2024 11:51
@msasikanth msasikanth merged commit a1fd1fc into main Feb 2, 2024
3 checks passed
@msasikanth msasikanth deleted the sm/02feb/fix-scroll-position-reset-config-change branch February 3, 2024 05:57
@MillyRen
Copy link

Hi masasikanth,

Regarding the comment "...Weirdly it doesn't fix scroll position getting reset for navigation. Will have to check separately and resolve it in a different PR."

Can I ask which PR is it?

Thanks a lot!

@msasikanth
Copy link
Owner Author

Hi masasikanth,

Regarding the comment "...Weirdly it doesn't fix scroll position getting reset for navigation. Will have to check separately and resolve it in a different PR."

Can I ask which PR is it?

Thanks a lot!

#303

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

Successfully merging this pull request may close these issues.

Scroll position resets after rotating
2 participants