Dialogs
To create a Dialog class, you should inherit it from DialogFragment
from the bootstrap package.
Other logic stays the same.
ViewModel
If you are using a ViewModel, you should inherit YesNoDialogFragment
from DialogFragmentViewModel
and pass the ViewModel as a parameter.
Last updated