Hello Chen,
The USE CASE 1 issue probably does not happen with every app. It might be happening only with heavy apps? I am just guessing here.
I experienced this same problem with my app. Everytime I resume after a pause, mmy screen goes blank.
When it loading, I show a loading dialog infiniteprogress box, but when I switch to another app then resume back, the dialog just keep rolling without stopping and the background bcomes blank though it was showing my previous form before I swiched to another app.
Also, let cn1 handle the paused state by default while any user can modify if they desire to.
Regards.
dispose the dialog on stop() callback
--
--
You received this message because you are subscribed to the Google
Groups "CodenameOne Discussions" group.
For more information about Codename One please visit http://www.codenameone.com/
To post to this group, send email to
codenameone...@googlegroups.com
To unsubscribe from this group, send email to
codenameone-discu...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/codenameone-discussions?hl=en?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/rKedbRp5nGk/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
if(Display.getInstance().getCurrent() instanceof Dialog) {
((Dialog)Display.getInstance().getCurrent()
).dispose();
}
Form f = Display.getInstance().getCurrent();
if(f instanceof Dialog) {
f.setTransitionOut(CommonTransitions.createEmpty());
f.dispose();
}
current = Display.getInstance().getCurrent();
if(current instanceof Dialog) {
// damn nested dialog, just give up
current = null;
}
f.dispose(); can't be found, do you mean ((Dialog) f).dispose(); ?
Sent from my Xperia™ smartphone
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/rKedbRp5nGk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/54581ee8-ef4c-4730-bbdc-8ded2efbb4ee%40googlegroups.com.