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

Only do a full update() from addArtwork() if something changed #560

Merged
merged 1 commit into from Aug 17, 2018

Conversation

ianhanniballake
Copy link
Collaborator

Avoid doing a full update (and the subsequent notifyChange()) if nothing actually changed. This removes cases where there's just a single image and it is unconditionally changed every time onLoadRequested() is called, causing an infinite loading loop.

When developers specifically call update(), we always call notifyChange() in case they are sorting by DATE_MODIFIED and want an updated list.

Fixes #559

Avoid doing a full update (and the subsequent notifyChange()) if nothing actually changed. This removes cases where there's just a single image and it is unconditionally changed every time onLoadRequested() is called, causing an infinite loading loop.

When developers specifically call update(), we always call notifyChange() in case they are sorting by DATE_MODIFIED and want an updated list.
@ianhanniballake ianhanniballake merged commit 52f6170 into muzei:master Aug 17, 2018
@ianhanniballake ianhanniballake deleted the infinite_loading branch August 17, 2018 05:34
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.

None yet

1 participant