Ignoring navigate() call: FragmentManager has already saved its state

前端 未结 5 2238
逝去的感伤
逝去的感伤 2021-02-08 01:19

I\'m using navigation in MainActivity, then I start SecondActivity (for result). After finish of SecondActivity I would like to continue w

5条回答
  •  心在旅途
    2021-02-08 02:00

    You must always call super.onActivityResult() in your Activity's onActivityResult. That is what:

    1. Unlocks Fragments so they can do fragment transactions (i.e., avoid the state is already saved errors)

    2. Dispatches onActivityResult callbacks to Fragments that called startActivityForResult.

提交回复
热议问题