If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA NetBeans 8.2
Desktop OS Windows 10 Pro
Simulator Latest
Device IOS & Android
I have a case where a dialog is open and the app becomes suspended. (IOS button at bottom was pressed)
Then when the App is resumed, The Dialog is no longer modal/visible, however when re-opening the dialog, I get Internal Application Error, component is already contained in container.
How does one usually handle suspension as it relates to Open Dialogs?
PS: I utilize stop() and handel what is known to me and clean up etc.
current = Display.getInstance().getCurrent();
if (current instanceof Dialog) {
((Dialog) current).dispose();
current = Display.getInstance().getCurrent();
}
How do I get the Dialog to be modal/visible after the app is awoken?
in my start() method, I do this:
if (current != null) {
current.show();
}
Thanks in advance.
Regards.