Not sure, never worked with dialogFragments so i can't really say, but
yeah.. fragments are a picky bunch and require more delicate handling.
On Monday, April 15, 2013 1:22:30 PM UTC+3, William Ferguson wrote:
Hm, thanks.
It just seems strange to need to explicitly check to see if the
Hi Piren, what is an appropriate definition of Started in this instance?
WIlliam
On Monday, April 15, 2013 1:17:36 AM UTC+10, Piren wrote:
Check the fragment state before showing, it should be Started, if not,
keep a flag saying that says this dialog needs to be shown. Check for the
flag
After onStart has been called and before onStop.
You can be more pedantic about the state if needed - using
isHidden/isVisible/isResumed .. since having it as started
does guarantee that the fragment is visible.
On Monday, April 15, 2013 11:32:45 AM UTC+3, William Ferguson wrote:
Hi Piren,
Errr... we need a damn edit button here. i meant: since having it as
started does *not* guarantee that the fragment is visible. :)
On Monday, April 15, 2013 11:47:22 AM UTC+3, Piren wrote:
After onStart has been called and before onStop.
You can be more pedantic about the state if needed
Hm, thanks.
It just seems strange to need to explicitly check to see if the Fragment
isResumed prior to showing a Dialog. Before Fragments, Activity#showDialog
would do nothing if the Activity was already torn down. So it seems kind of
retrograde.
I take it all instances of
Check the fragment state before showing, it should be Started, if not, keep
a flag saying that says this dialog needs to be shown. Check for the flag
state during onStart/onResume and show the dialog if needed
On Sunday, April 14, 2013 4:25:03 PM UTC+3, William Ferguson wrote:
I have a
6 matches
Mail list logo