You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.
Let's assume we've got this simple implementation:
public class ProfileWizardFragment extends WizardFragment {
@Override
public void onStepChanged() {
super.onStepChanged();
Log.d("onStepChanged()", String.valueOf(wizard.getCurrentStepPosition()));
}
@OnClick(R.id.next_button)
public void next() {
wizard.goNext();
Log.d("next()", String.valueOf(wizard.getCurrentStepPosition()));
}
}
When user clicks next_button once, there is next() method called and then onStepChanged() method. Next step from the queue is presented.
Log result:
D/onStepChanged(): 1
D/next(): 1
But when user clicks on the button few times very quickly, onStepChanged() is called only once at the beginning, meanwhile next() catches all of the events:
In fact I've also observed that it doesn't notify about all of the subpages when you go back with back button.
onStepChanged() is called for the 5 element even if you press back button 4 times and finally you are on the 2 element. After a delay and pressing back button once again, it logs 1:
Hello @hsz and thank you for your feedback. WizarDroid is an open source project developed in my spare time (which is extremely limited these days). You may contribute a fix yourself if you're unsatisfied of the progress done in the project. Any contribution is highly appreciated. Thanks!
Repository owner
locked and limited conversation to collaborators
May 29, 2015
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Let's assume we've got this simple implementation:
When user clicks
next_button
once, there isnext()
method called and thenonStepChanged()
method. Next step from the queue is presented.Log result:
But when user clicks on the button few times very quickly,
onStepChanged()
is called only once at the beginning, meanwhilenext()
catches all of the events:In fact, view is updating properly on the time (we can see all of the views: 2, 3, 4, 5 during the clicking).
The text was updated successfully, but these errors were encountered: