fragment/src/main/java/androidx/fragment/app/Fragment.java
@Deprecated
    @CallSuper
    public void onAttach(Activity activity) {
        mCalled = true;
    }
/**
     * Called when a fragment is first attached to its activity.
     * {@link #onCreate(Bundle)} will be called after this.
     *
     * @deprecated See {@link #onAttach(Context)}.
     */
Called when a fragment is first attached to its activity.
#onCreate(Bundle) will be called after this.


Called when a fragment is first attached to its activity . #onCreate ( Bundle ) will be called after this .
@Deprecated
    @CallSuper
    public void onAttach(Activity activity) {
        mCalled = true;
    }
@ Deprecated @ CallSuper public void onAttach ( Activity activity ) { mCalled = true ; }
Called when a fragment is first attached to its activity.
Called when a fragment is first attached to its activity .