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

pause(), resume() etc not working properly #36

Open
arpanbag001 opened this issue Apr 30, 2020 · 3 comments
Open

pause(), resume() etc not working properly #36

arpanbag001 opened this issue Apr 30, 2020 · 3 comments

Comments

@arpanbag001
Copy link

arpanbag001 commented Apr 30, 2020

The pause(), resume() etc methods are not working most of the times.
......... xxxx.pause() .........
Doesn't work at all!
However, if I run them after a delay, around 200-500ms like:
Handler().postDelayed({xxxx.pause()}, 500)
it works! But this delay ruins the user experience.
Also, it prevents developers from implementing complex functionalities.
How to get these methods working, without any delay (Preferably without even using a Handler)?

I love this library, and so do many many other devs.
Looking forward to a proper fix of this issue.

@BrandonAPZ
Copy link

Hi buddy, I would also like to make the transition from one user's stories to another's stories, but I'm facing a problem that I wanted to ask you if you went through it and how did you solve it. What happens is that I am initializing the list of stories of the first user and when it happens to the onComplete () I initialize the list of stories of the other user and do a storiesProgressView.startStories () but storiesProgressView.reverse () and storiesProgressView no longer work for me .skip () ... do you have any idea why this happens?

@arpanbag001
Copy link
Author

Hi buddy, I would also like to make the transition from one user's stories to another's stories, but I'm facing a problem that I wanted to ask you if you went through it and how did you solve it. What happens is that I am initializing the list of stories of the first user and when it happens to the onComplete () I initialize the list of stories of the other user and do a storiesProgressView.startStories () but storiesProgressView.reverse () and storiesProgressView no longer work for me .skip () ... do you have any idea why this happens?

Coz once the progress is marked as complete, you can't restart it.
You can manually change the code, or give this library a try. It is having exact same code, with minor fixes like this one.

https://github.com/teresaholfeld/Stories

@samir-gawas
Copy link

The pause(), resume() etc methods are not working most of the times. ......... xxxx.pause() ......... Doesn't work at all! However, if I run them after a delay, around 200-500ms like: Handler().postDelayed({xxxx.pause()}, 500) it works! But this delay ruins the user experience. Also, it prevents developers from implementing complex functionalities. How to get these methods working, without any delay (Preferably without even using a Handler)?

I love this library, and so do many many other devs. Looking forward to a proper fix of this issue.

Instead of handler you can use view.post{} to update UI without delay

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

No branches or pull requests

3 participants