Hi, the callbacks mechanism is flawed as it does not take into account the Fragment being recreated due to a configuration change (e.g. rotation).
It would be better to enforce the Activity or parent Fragment to implement the callback interface and send back the tag of the Fragment rather than (or as well as) the View itself.
Hi, the callbacks mechanism is flawed as it does not take into account the
Fragment
being recreated due to a configuration change (e.g. rotation).It would be better to enforce the
Activity
or parentFragment
to implement the callback interface and send back the tag of theFragment
rather than (or as well as) theView
itself.