Hi,
I wonder what is the right way to implement this? Could anybody advice whether my solution is correct?
So:
- Activity is created
- User clicks on button and dialog is launched (Dialog, not dialog styled activity)
- User opens keyboard
- we have onSaveInstanceState called where we save that our dialog was opened and all respective dialog input
- we have onRestoreInstanceState and here we check whether dialog was shown, recreate the dialog with respective input.
Is it the right approach? or there is smth. that is done by Android and I am doing some redundant actions.
Thanks