Fixed
Status Update
Comments
jb...@google.com <jb...@google.com>
ap...@google.com <ap...@google.com> #2
Hi Ed, Thank you so much for these suggestions. I've been reviewing them and merging them in. Hopefully it should be live. I've included a thank you note too in the article.
jb...@google.com <jb...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
gs...@gmail.com <gs...@gmail.com> #4
Should ComponentDialog
be a part of DialogFragment
's API as well?
requireActivity()
returns a ComponentActivity
so why does requireDialog()
return a Dialog
instead of a ComponentDialog
? Also relevant to other APIs like onCreateDialog
[Deleted User] <[Deleted User]> #5
I agree with the above comment. I don't want to have to cast my dialog to ComponentDialog in order to access OnBackPressedDispatcher.
Description
ComponentDialog
was added inDialog
that interacts correctly with theOnBackPressedDispatcher
. We should replace theDialog
inDialogFragment
withComponentDialog
.