Question : Android popBackStack to specific fragment
Answered by : santosh-pal
FragmentManager.popBackStack(int, int). When you commit your fragment transaction, the method returns an identifier for You should not add your first fragment to the backstack, as pressing the return key will just reverse the action you did.
Source : | Last Update : Thu, 25 Feb 21