Use FragmentTransaction#setPrimaryNavigationFragment(fragment)
to set a ChildFragmentManager
as deleage for the Activity
s FragmentManager
.
This makes sure the back-button gets delegated to the ChildFragmentManager
and allows you to keep a back-stack per tab without having
to override OnBackPressed()
everywhere.
Created
April 19, 2018 08:27
-
-
Save NielsMasdorp/5159f2e5858a1f2c0010c8c39866ec10 to your computer and use it in GitHub Desktop.