shts / StoriesProgressView

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

StoryProgessView is running method #5

Open gulzar1996 opened 7 years ago

gulzar1996 commented 7 years ago

Is it possible to determine if the Story progress View is running ? progessview.startstories() progressview.resume() when called causes multiple progress view to run simultaneously!

shts commented 6 years ago

I'm going to add isRunning() method at next release.

ghost commented 6 years ago

This is still a massive issue...any ETA on a fix?

shts commented 6 years ago

@Xenero @gulzar1996 I cannot take the time. This is work around.

public class YourActivity extends AppCompatActivity implements StoriesProgressView.StoriesListener {
    private StoriesProgressView storiesProgressView;
    private boolean isRunning = false;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
...
        storiesProgressView.startStories(); // <- start progress
        isRunning = true;
    }
...
    @Override
    public void onComplete() {
        isRunning = false;
    }
}
ghost commented 6 years ago

How does that work around do anything at all? I could suggest that you allow one of us to become a moderator to allow and review pull requests as this library is extremely useful if executed properly.

shts commented 6 years ago

https://github.com/shts/StoriesProgressView/issues/11