Closed lucasharada closed 7 years ago
Hi @lucasharada,
I have never tried putting the StepperLayout
in a Fragment
before so I'm not really sure how it would behave.
When constructing AbstractFragmentStepAdapter
does the FragmentManager
come from the Activity
or are you using MainFragment#getChildFragmentManager()
?
@zawadz88 I'm currently using MainFragment#getFragmentManager()
(not sure if the same as Activity#getFragmentManager()
).
I think that for MainFragment
this will be the same as Activity#getFragmentManager()
.
Please try with MainFragment#getChildFragmentManager()
and let me know if it helps.
@zawadz88 That worked! Thanks a lot!
I think that for
MainFragment
this will be the same asActivity#getFragmentManager()
. Please try withMainFragment#getChildFragmentManager()
and let me know if it helps.
I suggest you to insert this information in the main page. Thank you
I did not see anything related to the Stepper being used in Fragment (F1) instead of Activity, so I gave it a try. At first, it works, but has a bug where the Stepper is not inflated correctly when F1 is remove and then added again.
Steps to reproduce:
Finally, is it a problem with using the Stepper with Activity? Or am I doing something wrong?
Replacing CallerFragment for MainFragment
Destroying the MainFragment, which contains the Stepper, and popping the backstack