[android-developers] Re: FragmentManager.popBackStack not working when used with child fragment manager

2013-09-18 Thread Atlan
I had the same problem. The solution for me was simple: in onCreateView I had: // Create the adapter that will return a fragment for each of the three// primary sections of the app. mSectionsPagerAdapter = new SectionsPagerAdapter(getActivity() .getSupportFragmentManager()); where

Re: [android-developers] Re: FragmentManager.popBackStack not working when used with child fragment manager

2013-05-30 Thread Miha
Hi everybody! On Wednesday, May 29, 2013 9:35:49 PM UTC+2, Miha wrote: I'll post the whole mechanics tomorrow. So, to give some context: I'm using a ViewPager with FragmentStatePageAdapter, where I have three fragments. Two of those fragments (first and third), also nest another fragments

Re: [android-developers] Re: FragmentManager.popBackStack not working when used with child fragment manager

2013-05-29 Thread Miha Valencic
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

Re: [android-developers] Re: FragmentManager.popBackStack not working when used with child fragment manager

2013-05-29 Thread Miha Valencic
Hi guys and gals! On Wed, May 29, 2013 at 9:26 AM, Miha Valencic miha.valen...@gmail.com wrote: 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... ... and that is actually the case. My problem is (was)

[android-developers] Re: FragmentManager.popBackStack not working when used with child fragment manager

2013-05-28 Thread Josh Burton
Well I don't have a fix yet, but I have just run into the same problem! On Tuesday, 28 May 2013 07:23:19 UTC+12, Miha wrote: Anybody? Regards, Miha. On Saturday, May 25, 2013 3:08:13 PM UTC+2, Miha wrote: If I dump the child fragment state, it shows the activity as detached; If I

[android-developers] Re: FragmentManager.popBackStack not working when used with child fragment manager

2013-05-28 Thread Streets Of Boston
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.

[android-developers] Re: FragmentManager.popBackStack not working when used with child fragment manager

2013-05-27 Thread Miha
Anybody? Regards, Miha. On Saturday, May 25, 2013 3:08:13 PM UTC+2, Miha wrote: If I dump the child fragment state, it shows the activity as detached; If I dump the parent fragment manager state, it shows all of the fragments and also the activity reference (see below). I'm using