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 visibility tracking during RecyclerView animations #962

Merged
merged 7 commits into from
May 4, 2020

Conversation

eboudrant
Copy link
Contributor

This will fix this bug : #958

The visibility tracker could miss event in case there is a running animation in the RecyclerView.ItemAnimator.

The fix is simple, we need to check is the animator is running. The isRunning method require a callback that is call instantly if not running or at the end the animation.

I could not find a way to explicitly test the animator however there is already a good test coverage on thee modified code path.

Copy link
Contributor

@elihart elihart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks a lot for the fix and continued contributions. I'll try to get a release out in the next week, i will be working on incap and some other stuff soon

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.

2 participants