-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DialogFragment support? #106
Comments
@Spellbit do you have a workaround, i currently have a need for it ? |
For the moment i have a very quick and crude solution. For example here is my fragmentForward of Navigator:
As you can see, there is a check if our fragment is an instance of DialogFragment and if it is - call of the show function. fragmentReplace is similar. Unfortunately its a very crude solution cause you have to call dismiss to close DialogFragment and as a consequence you cant navigate back with router. To solve this we need to deal with stack in DialogFragment case somehow. When i got some time for it - maybe i will make a more decent implementation but for now i just call dismiss from view. |
Hello! My opinion is Dialogs are not navigation screens! Because android puts dialogs not in container but in system window. What happens if you want replace dialog to fragment? Or set dialog as root screen? There are a lot of corner cases with dialogs. I don't know good common solution for managing dialogs at the moment :) |
Jetpack navigation has this feature since 2.1.0 |
|
Greteengs! It would be great to have DialogFragment support out of the box. Its a pretty much common case and for now we have to subclass Navigator and implement it manually.
The text was updated successfully, but these errors were encountered: