In Navigation 2.1.0-alpha03 they added functionality to navigate to a DialogFragment with <dialog>
tag.
However, how can the source fragment/activity then dismiss this dialog fragment? Its very easy to do this in pure AOSP android with dialogFragment.dismiss()
, but I don't see an accompanying way in Navigation library.
findNavController().navigateUp()
is the one what you are looking for.
<dialog>
is treated same as <fragment>
. Controlling destinations are all identical.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With