Here\'s the scenario: Activity contains fragment A, which in turn uses getChildFragmentManager() to add fragments A1 and A2
A simple way to fix this problem is use the Fragment class from this library instead of the standard library fragment class:
https://github.com/marksalpeter/contract-fragment
As a side note, the package also contains a useful delegate pattern called ContractFragment that you might find useful for building your apps leveraging the parent-child fragment relationship.