DialogFragment.getDialog returns null
<p>I am trying to get the Dialog I have created with an extended DialogFragment using DialogFragment.getDialog() but it returns null.</p>

<p>Basically I want to alter the text in the layout from the FragmentActivity which creates and shows the DialogFragment.</p>
