registerforactivityresult

Update to androidx.fragment:fragment:1.3.0-alpha08: registerForActivityResult not allowed after onCreate anymore. How to use after onCreate?

走远了吗. 提交于 2021-01-22 06:01:49
问题 Initial Question (18/05/2020): So with the latest Update from androidx.fragment:fragment:1.3.0- alpha07 to androidx.fragment:fragment:1.3.0- alpha08 I get the error: FragmentXY is attempting to registerForActivityResult after being created. Fragments must call registerForActivityResult() before they are created (i.e. initialization, onAttach(), or onCreate()). I used to check permissions in my StartFragment (Single Activity App, in onViewCreated) after showing to the User information about

Update to androidx.fragment:fragment:1.3.0-alpha08: registerForActivityResult not allowed after onCreate anymore. How to use after onCreate?

拈花ヽ惹草 提交于 2021-01-22 06:01:05
问题 Initial Question (18/05/2020): So with the latest Update from androidx.fragment:fragment:1.3.0- alpha07 to androidx.fragment:fragment:1.3.0- alpha08 I get the error: FragmentXY is attempting to registerForActivityResult after being created. Fragments must call registerForActivityResult() before they are created (i.e. initialization, onAttach(), or onCreate()). I used to check permissions in my StartFragment (Single Activity App, in onViewCreated) after showing to the User information about