I'm developing an android app that uses fragments as the base of the navigation flow. In some point, i fell in a problem that I couldnt resolve.
All fragments extends from a base class which has some properties that the navigation manager needs, called NavigationFragment, which extends from Fragment.
Now, I need to show one of this fragments like a popup, on a Dialog.
I found the amazing class DialogFragment that does the trick, but the problem is that the fragment cannot extend from this because it already extends from NavigationFragment.
I dont want to make NavigationFragment a DialogFragment, because there are only a few of them that will be shown as a popup.
Do you know an alternative to this? like a Dialog that can contain a Fragment, or something else?
Thanks!