Fragment Transactions and Back Stack: What Happens When You Add, Replace and Press Back? – Mohit Kansal

Fragment Transactions and Back Stack: What Happens When You Add, Replace and Press Back? – Mohit Kansal – Medium

  1. Fragment A is shown.
  2. You add Fragment B to the top of Fragment A.
  3. Press back while on Fragment B.
  4. Fragment A should reappear because Fragment B was added to the back stack.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.