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

Countdowns stop in a recycler view when items scroll out of view #45

Open
ahaverty opened this issue May 19, 2017 · 1 comment
Open

Comments

@ahaverty
Copy link

My recycler view items each contain countdowns.
When an item goes out of view, the countdowns pause at the exact time they went from visible to not visible.
My recycler view doesn't always retrigger my onBind's depending on how many list items it caches.
It looks like this library stops the countdown on detachment, but doesn't restart it on re-attachment.

See: CountdownView.java#L95

@Override
    protected void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        stop();
    }
@xlp-shawn
Copy link

hei,I've had this problem, too, how to solve this problem

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 a pull request may close this issue.

2 participants