shts / StoriesProgressView

show horizontal progress like instagram stories.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pause(), resume() etc not working properly

arpanbag001 opened this issue · comments

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.

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?

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

commented

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