acefalobi / android-stepper

A library for creating a wizard-like step-through user interface that uses navigation components and menus for displaying steps with advanced customization.
Apache License 2.0
325 stars 38 forks source link

onStepChanged dispatched too early #22

Closed cesarazuero closed 3 years ago

cesarazuero commented 3 years ago

On event onStepChanged I can't get a correct reference to fragment being presented, would be good to wait animation finish and then dispatch the event.

acefalobi commented 3 years ago

The onStepChanged event is mainly for changes to the host activity/fragment. If you want to make changes to the child fragments, you should do that in the nav controller's addOnDestinationChangedListener or in the fragment's onResume

acefalobi commented 3 years ago

Closing this because it seems it has been answered