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
This issue is about resolving the onActivityCreated(...) compile warnings for the WordPress module, and possibly, for the lib modules as well.
PS: Some of those warnings are already deprecated (see here).
Use onViewCreated(View, Bundle) for code touching the view created by onCreateView and onCreate(Bundle) for other initialization. To get a callback specifically when a Fragment activity's Activity.onCreate(Bundle) is called, register a androidx.lifecycle.LifecycleObserver on the Activity's Lifecycle in onAttach(Context), removing it when it receives the Lifecycle.State.CREATED callback.
Parent #17173
This issue is about resolving the
onActivityCreated(...)
compile warnings for the WordPress module, and possibly, for the lib modules as well.PS: Some of those warnings are already deprecated (see here).
Use
onViewCreated(View, Bundle)
for code touching the view created byonCreateView
andonCreate(Bundle)
for other initialization. To get a callback specifically when a Fragment activity'sActivity.onCreate(Bundle)
is called, register aandroidx.lifecycle.LifecycleObserver
on the Activity's Lifecycle inonAttach(Context)
, removing it when it receives theLifecycle.State.CREATED
callback.For more info see:
The text was updated successfully, but these errors were encountered: