Which life cycle is not an active fragment



  • I have one activism and many fragments that go there. So what's the life cycle of the fragment that's put on another fragment?



  • If it stays in the stack, onPause
    If not popbackstack) - onDestroy

    But it's worth pointing out that finding is onPause. Not at all. Guarantees that the DS itself will not kill Fragment.
    In such cases, the DS re-establishes Fragment and the data that contained it are extracted from either bundle or ViewModel



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2