So I have a managed AlertDialog
with a number of EditText
s & 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.
What I can think of is getting references to the EdiText
s in onPrepareDialog(..)
, then getting the actual text in onConfigurationChanged(..)
, then removing the dialog, then showing it again, then populating it. Rather ugly, huh?
Are there any better options?