title: Restoring fragment backstack for fragment with two possible backstack paths
body: <p>I have one Activity with 3 fragments which form a workflow to collect user input.
  Normally, Fragment A is the first fragment -> Launches B -> Launches C. B is supposed to launch A if the back button is pressed, and similarly C's Back button is supposed to launch B. </p>
  
  <p>However, in some cases, A is supposed to launch C directly, and then C's back should launch A again. </p>
  
  <p>I prefer that C should not know who launched it. I.e. I want C's "backstack" to operate without C knowing who launched it. </p>
  
  <p>I tried using the usual addToBackstack approach, but I'm facing a problem when the Activity gets killed after the user lets the app go into the background while C was open. </p>
  
  <ol>
  <li>I would like the user to return to "C" instead of starting all over from A. To achieve this I'm using the saved Instance state, and detecting which fragment was previously active, and launching it from the activity. </li>
  <li>The problem starts when the user wants to go back from C, after the Activity was recreated after being killed. C doesn't know who launched it: A or B. How do I make the Back button work as expected for this case?</li>
  </ol>