You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WorkflowFragment is starting workflow in onActivityCreated() which is deprecated in AndroidX Fragment 1.3.0.
Should we move the initialization to onViewCreated() instead?
I'm ready to send a PR:)
The text was updated successfully, but these errors were encountered:
zach-klippenstein
added
kotlin
Affects the Kotlin library.
points: 1
proposal
Issue or PR that proposes something and invites comment on whether or not it's a good idea.
enhancement
New feature or request
and removed
proposal
Issue or PR that proposes something and invites comment on whether or not it's a good idea.
labels
May 2, 2020
We should definitely not be relying on deprecated APIs. I don't think there's any logic in that method that actually relies on that particular lifecycle event, but @rjrjr should confirm. If there is, we can use the onAttach LifecycleObserver trick mentioned in that PR, otherwise we can probably do what you've proposed.
If you want to submit a PR, that would be great! I would hold off for Ray's confirmation though to make sure you're not doing wasted work. Thanks for filing!
Doing it in onViewCreated would get view persistence out of order:
* Called immediately after {@link #onCreateView(LayoutInflater, ViewGroup, Bundle)}
* has returned, but before any saved state has been restored in to the view.
WorkflowFragment
is starting workflow inonActivityCreated()
which is deprecated in AndroidX Fragment 1.3.0.Should we move the initialization to
onViewCreated()
instead?I'm ready to send a PR:)
The text was updated successfully, but these errors were encountered: