Hi!

On Tue, May 28, 2013 at 11:55 PM, Streets Of Boston
<flyingdutc...@gmail.com> wrote:
> Did a google search and wound up on stackoverflow, where Dianne Hackborn
> answered this question:
> http://stackoverflow.com/questions/8772921/how-to-pop-back-stack-for-activity-with-multiple-fragments
>
> In short: The backstack doesn't work for 'inner' fragments, it only works
> for Activity (i.e. 'main') fragments, since the back stack seems to be tied
> to an Activity only, not to its Fragments.

Thanks! I actually found this SO post, but since it didn't use the
getChildFragmentManager(), I was assuming that was not the case any
more...

Nontheless, this seems like a bug to me, since the backstack is
visibly populated (seen by inspecting fragmentManager.dump()), just
can't pop it. It looks to me that I need to work around it then.

In this case, it probably does not make sense to call addToBackStack,
and just handle the "back stack" myself. Not a big deal, though I
wonder what happens when i "replace" fragments within fragment
transaction. Will they be discarded properly?

I'll try some approaches and will post the solution.

Regards,
 Miha.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to