I have an ActivityA
and which host a fragmentA
onAttach()
method of fragmentA
, I need to check some conditions and if it fails, I need to finish the activity.
I'm finishing the activity by calling getActivity().finish()
.
Even after I call the finish method, it is still calling the onCreate()
, onCreateView()
and onViewCreated()
methods in fragmentA
.
Is there any way I can stop these calls?