Please note, this question is not a duplicate of the following:
Resolved it by moving all of the onActivityResult
logic from the Fragment
to the Activity
.
Do note, however, that the reqCode
that gets passed to the Fragment
is different than the reqCode
that gets delivered to the parent Activity
(the one for the Activity
is set by the system I think). This meant that I had to also move the original startActivityForResult
call from the Fragment
to the Activity
, and then create a method to call it from the Fragment
when needed.
If anyone finds a more elegant way, I would be happy to hear about it.