Fixed
Status Update
Comments
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!
Description
The
invoke()
method is the only API exposed fromActivityResultRegistry
. This used to make since becauseActivityResultLauncher
used the kotlininvoke()
and invoking the launcher would callinvoke()
on the registry. SinceActivityResultLauncher
has moved to usinglaunch()
this connection is no longer clear.We should change the
invoke()
inActivityResultRegistry
to beonLaunch()
so it is clear that it is executed once the call tolaunch()
is made.