Drop calls to inner fragments management methods

Fix 1435
Calling getActivity() here may cause an NPE since the activity may not have been attached yet. You can use container.getContext() as the context instead.