Hello, I am using the fragment compatibility library and have a question about fragment transactions. I am using a third-party action bar and two fragments in this scenario. Each fragment updates the user interface of the outside action bar when they are displayed. When displaying the first fragment, I add a button to the action bar which when clicked performs a fragment transaction replace operation to display the second fragment. The second fragment updates the display of the action bar accordingly.
The problem I am seeing is when the user presses back, or I need to manually remove the second fragment via a popBackStack operation, I need to be able to update the view of the newly visible initial fragment. At first I thought that OnBackStackChangedListener would be the solution, however when that gets triggered during the replace going from one fragment to another it causes the initial first fragment to update the state of the action bar when the second fragment is actually visible. I tried to check for visibility within onBackStackChanged of the first fragment, but the fragment always comes back as being visible even when it shouldn't in the scenario of loading the new fragment. Does anyone have any suggestions for this type of situation? Any thoughts to what I might be missing? Thanks! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

