In my onCreate
method I have a call to handleIntent
which is responsible for handling intents.
Inside that call (among other things) I create fragment.
This causes that fragment to be created twice on orientation change (one which was previously created on activity start, restored from FragmentManager
, other again created in handleIntent
method that is called because onCreate
method is called when orientation changes).
What is the proper way to avoid that - that is how to avoid handleIntent
being called on orientation change?