shts / StoriesProgressView

show horizontal progress like instagram stories.
Apache License 2.0
885 stars 203 forks source link

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

Open arpanbag001 opened 4 years ago

arpanbag001 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 1 year ago

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