Fixed
Status Update
Comments
il...@google.com <il...@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.
ap...@google.com <ap...@google.com> #3
Great! Thanks a lot, I'll look for the live updates soon!
jb...@google.com <jb...@google.com> #4
This has been fixed internally and will be available in the Fragment 1.3.1
and 1.4.0-alpha01
releases.
Description
1.3.0-rc01
The documentation of
Fragment.setFragmentResult
extension function offragment-ktx
is wrong about nullability ofresult
.@param result the result to be passed to another fragment or
nullif you want to clear out any pending result.
result
is annotated@NonNull
onFragmentManager
Java API and the Kotlin type ofresult
isBundle
, notBundle?
.How can we "clear out any pending result" then?
Related to this, how should we communicate "cancel" or "no result" with this API? An empty bundle?