A non-ugly way to persist dialog contents across orientation changes?
<p>So I have a managed <code>AlertDialog</code> with a number of <code>EditText</code>s &amp; separate portrait + landscape layouts. The user opens the dialog in portrait mode, enters some text and then all of a sudden decides to pop out the keyboard. Now, I need to remove the dialog and recreate it for the changed layout persisting the text entered.<br>
What I can think of is getting references to the <code>EdiText</code>s in <code>onPrepareDialog(..)</code>, then getting the actual text in <code>onConfigurationChanged(..)</code>, then removing the dialog, then showing it again, then populating it. Rather ugly, huh?<br>
Are there any better options?</p>
