package androidx.fragment.app;

import X6FRs_4.KNBe_11.H5YG8fq_22;
import X6FRs_4.KNBe_11.IFxWkV_5;
import X6FRs_4.KNBe_11.RfjZ_21;
import X6FRs_4.KNBe_11.WwEq_13;
import X6FRs_4.KNBe_11.Xgtqvk_8;
import X6FRs_4.KNBe_11.XnFJ5_9;
import X6FRs_4.XnFJ5_9.KQgRr5e_0.FSaI4_7;
import X6FRs_4.XnFJ5_9.KQgRr5e_0.IMuAHx_6;
import android.animation.Animator;
import android.app.Activity;
import android.content.ComponentCallbacks;
import android.content.Context;
import android.content.Intent;
import android.content.IntentSender;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.os.Bundle;
import android.os.Looper;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.util.SparseArray;
import android.view.ContextMenu;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import androidx.lifecycle.LiveData;
import androidx.recyclerview.widget.RecyclerView;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import java.lang.reflect.InvocationTargetException;
/* loaded from: classes.dex */
public class Fragment implements ComponentCallbacks, View.OnCreateContextMenuListener, Xgtqvk_8, H5YG8fq_22 {
    public static final int ACTIVITY_CREATED = 2;
    public static final int CREATED = 1;
    public static final int INITIALIZING = 0;
    public static final int RESUMED = 4;
    public static final int STARTED = 3;
    public boolean mAdded;
    public Mqv2r_3 mAnimationInfo;
    public Bundle mArguments;
    public int mBackStackNesting;
    public boolean mCalled;
    public IMuAHx_6 mChildFragmentManager;
    public FSaI4_7 mChildNonConfig;
    public ViewGroup mContainer;
    public int mContainerId;
    public boolean mDeferStart;
    public boolean mDetached;
    public int mFragmentId;
    public IMuAHx_6 mFragmentManager;
    public boolean mFromLayout;
    public boolean mHasMenu;
    public boolean mHidden;
    public boolean mHiddenChanged;
    public X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 mHost;
    public boolean mInLayout;
    public View mInnerView;
    public boolean mIsCreated;
    public boolean mIsNewlyAdded;
    public LayoutInflater mLayoutInflater;
    public Fragment mParentFragment;
    public boolean mPerformedCreateView;
    public float mPostponedAlpha;
    public boolean mRemoving;
    public boolean mRestored;
    public boolean mRetainInstance;
    public boolean mRetaining;
    public Bundle mSavedFragmentState;
    public Boolean mSavedUserVisibleHint;
    public SparseArray<Parcelable> mSavedViewState;
    public String mTag;
    public Fragment mTarget;
    public int mTargetRequestCode;
    public View mView;
    public Xgtqvk_8 mViewLifecycleOwner;
    public XnFJ5_9 mViewLifecycleRegistry;
    public RfjZ_21 mViewModelStore;
    public String mWho;
    public static final X6FRs_4.Mqv2r_3.IMuAHx_6<String, Class<?>> sClassMap = new X6FRs_4.Mqv2r_3.IMuAHx_6<>();
    public static final Object USE_DEFAULT_TRANSITION = new Object();
    public int mState = 0;
    public int mIndex = -1;
    public int mTargetIndex = -1;
    public boolean mMenuVisible = true;
    public boolean mUserVisibleHint = true;
    public XnFJ5_9 mLifecycleRegistry = new XnFJ5_9(this);
    public WwEq_13<Xgtqvk_8> mViewLifecycleOwnerLiveData = new WwEq_13<>();

    /* loaded from: classes.dex */
    public interface IFxWkV_5 {
        void KQgRr5e_0();

        void QxJ9d_1();
    }

    /* loaded from: classes.dex */
    public class KQgRr5e_0 implements Runnable {
        public KQgRr5e_0() {
        }

        @Override // java.lang.Runnable
        public void run() {
            Fragment.this.callStartTransitionListener();
        }
    }

    /* loaded from: classes.dex */
    public static class Mqv2r_3 {

        /* renamed from: IFxWkV_5  reason: collision with root package name */
        public Object f3522IFxWkV_5;
        public int KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public X6FRs_4.IMuAHx_6.Mqv2r_3.XnFJ5_9 f2319KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Animator f2320KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public View f2321KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public IFxWkV_5 f2322KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Boolean f2323KQgRr5e_0;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public Object f2324KQgRr5e_0 = null;

        /* renamed from: KQgRr5e_0  reason: collision with other field name */
        public boolean f2325KQgRr5e_0;

        /* renamed from: Mqv2r_3  reason: collision with root package name */
        public int f3523Mqv2r_3;

        /* renamed from: Mqv2r_3  reason: collision with other field name */
        public Object f2326Mqv2r_3;
        public int PGPF6hQ_2;

        /* renamed from: PGPF6hQ_2  reason: collision with other field name */
        public Object f2327PGPF6hQ_2;
        public int QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public X6FRs_4.IMuAHx_6.Mqv2r_3.XnFJ5_9 f2328QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public Boolean f2329QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public Object f2330QxJ9d_1;

        /* renamed from: QxJ9d_1  reason: collision with other field name */
        public boolean f2331QxJ9d_1;

        /* renamed from: X6FRs_4  reason: collision with root package name */
        public Object f3524X6FRs_4;

        public Mqv2r_3() {
            Object obj = Fragment.USE_DEFAULT_TRANSITION;
            this.f2330QxJ9d_1 = obj;
            this.f2327PGPF6hQ_2 = null;
            this.f2326Mqv2r_3 = obj;
            this.f3524X6FRs_4 = null;
            this.f3522IFxWkV_5 = obj;
            this.f2319KQgRr5e_0 = null;
            this.f2328QxJ9d_1 = null;
        }
    }

    /* loaded from: classes.dex */
    public class PGPF6hQ_2 implements Xgtqvk_8 {
        public PGPF6hQ_2() {
        }

        @Override // X6FRs_4.KNBe_11.Xgtqvk_8
        public X6FRs_4.KNBe_11.IFxWkV_5 getLifecycle() {
            Fragment fragment = Fragment.this;
            if (fragment.mViewLifecycleRegistry == null) {
                fragment.mViewLifecycleRegistry = new XnFJ5_9(fragment.mViewLifecycleOwner);
            }
            return Fragment.this.mViewLifecycleRegistry;
        }
    }

    /* loaded from: classes.dex */
    public static class SavedState implements Parcelable {
        public static final Parcelable.Creator<SavedState> CREATOR = new KQgRr5e_0();
        public final Bundle KQgRr5e_0;

        /* loaded from: classes.dex */
        public static class KQgRr5e_0 implements Parcelable.ClassLoaderCreator<SavedState> {
            @Override // android.os.Parcelable.Creator
            /* renamed from: KQgRr5e_0 */
            public SavedState createFromParcel(Parcel parcel) {
                return new SavedState(parcel, null);
            }

            @Override // android.os.Parcelable.ClassLoaderCreator
            /* renamed from: KQgRr5e_0 */
            public SavedState createFromParcel(Parcel parcel, ClassLoader classLoader) {
                return new SavedState(parcel, classLoader);
            }

            @Override // android.os.Parcelable.Creator
            /* renamed from: KQgRr5e_0 */
            public SavedState[] newArray(int i) {
                return new SavedState[i];
            }
        }

        public SavedState(Parcel parcel, ClassLoader classLoader) {
            Bundle readBundle = parcel.readBundle();
            this.KQgRr5e_0 = readBundle;
            if (classLoader == null || readBundle == null) {
                return;
            }
            readBundle.setClassLoader(classLoader);
        }

        @Override // android.os.Parcelable
        public int describeContents() {
            return 0;
        }

        @Override // android.os.Parcelable
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeBundle(this.KQgRr5e_0);
        }
    }

    /* loaded from: classes.dex */
    public static class X6FRs_4 extends RuntimeException {
        public X6FRs_4(String str, Exception exc) {
            super(str, exc);
        }
    }

    private Mqv2r_3 ensureAnimationInfo() {
        if (this.mAnimationInfo == null) {
            this.mAnimationInfo = new Mqv2r_3();
        }
        return this.mAnimationInfo;
    }

    public static Fragment instantiate(Context context, String str) {
        return instantiate(context, str, null);
    }

    public static boolean isSupportFragmentClass(Context context, String str) {
        try {
            Class<?> cls = sClassMap.get(str);
            if (cls == null) {
                cls = context.getClassLoader().loadClass(str);
                sClassMap.put(str, cls);
            }
            return Fragment.class.isAssignableFrom(cls);
        } catch (ClassNotFoundException unused) {
            return false;
        }
    }

    public void callStartTransitionListener() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        IFxWkV_5 iFxWkV_5 = null;
        if (mqv2r_3 != null) {
            mqv2r_3.f2325KQgRr5e_0 = false;
            IFxWkV_5 iFxWkV_52 = mqv2r_3.f2322KQgRr5e_0;
            mqv2r_3.f2322KQgRr5e_0 = null;
            iFxWkV_5 = iFxWkV_52;
        }
        if (iFxWkV_5 != null) {
            iFxWkV_5.QxJ9d_1();
        }
    }

    public void dump(String str, FileDescriptor fileDescriptor, PrintWriter printWriter, String[] strArr) {
        printWriter.print(str);
        printWriter.print("mFragmentId=#");
        printWriter.print(Integer.toHexString(this.mFragmentId));
        printWriter.print(" mContainerId=#");
        printWriter.print(Integer.toHexString(this.mContainerId));
        printWriter.print(" mTag=");
        printWriter.println(this.mTag);
        printWriter.print(str);
        printWriter.print("mState=");
        printWriter.print(this.mState);
        printWriter.print(" mIndex=");
        printWriter.print(this.mIndex);
        printWriter.print(" mWho=");
        printWriter.print(this.mWho);
        printWriter.print(" mBackStackNesting=");
        printWriter.println(this.mBackStackNesting);
        printWriter.print(str);
        printWriter.print("mAdded=");
        printWriter.print(this.mAdded);
        printWriter.print(" mRemoving=");
        printWriter.print(this.mRemoving);
        printWriter.print(" mFromLayout=");
        printWriter.print(this.mFromLayout);
        printWriter.print(" mInLayout=");
        printWriter.println(this.mInLayout);
        printWriter.print(str);
        printWriter.print("mHidden=");
        printWriter.print(this.mHidden);
        printWriter.print(" mDetached=");
        printWriter.print(this.mDetached);
        printWriter.print(" mMenuVisible=");
        printWriter.print(this.mMenuVisible);
        printWriter.print(" mHasMenu=");
        printWriter.println(this.mHasMenu);
        printWriter.print(str);
        printWriter.print("mRetainInstance=");
        printWriter.print(this.mRetainInstance);
        printWriter.print(" mRetaining=");
        printWriter.print(this.mRetaining);
        printWriter.print(" mUserVisibleHint=");
        printWriter.println(this.mUserVisibleHint);
        if (this.mFragmentManager != null) {
            printWriter.print(str);
            printWriter.print("mFragmentManager=");
            printWriter.println(this.mFragmentManager);
        }
        if (this.mHost != null) {
            printWriter.print(str);
            printWriter.print("mHost=");
            printWriter.println(this.mHost);
        }
        if (this.mParentFragment != null) {
            printWriter.print(str);
            printWriter.print("mParentFragment=");
            printWriter.println(this.mParentFragment);
        }
        if (this.mArguments != null) {
            printWriter.print(str);
            printWriter.print("mArguments=");
            printWriter.println(this.mArguments);
        }
        if (this.mSavedFragmentState != null) {
            printWriter.print(str);
            printWriter.print("mSavedFragmentState=");
            printWriter.println(this.mSavedFragmentState);
        }
        if (this.mSavedViewState != null) {
            printWriter.print(str);
            printWriter.print("mSavedViewState=");
            printWriter.println(this.mSavedViewState);
        }
        if (this.mTarget != null) {
            printWriter.print(str);
            printWriter.print("mTarget=");
            printWriter.print(this.mTarget);
            printWriter.print(" mTargetRequestCode=");
            printWriter.println(this.mTargetRequestCode);
        }
        if (getNextAnim() != 0) {
            printWriter.print(str);
            printWriter.print("mNextAnim=");
            printWriter.println(getNextAnim());
        }
        if (this.mContainer != null) {
            printWriter.print(str);
            printWriter.print("mContainer=");
            printWriter.println(this.mContainer);
        }
        if (this.mView != null) {
            printWriter.print(str);
            printWriter.print("mView=");
            printWriter.println(this.mView);
        }
        if (this.mInnerView != null) {
            printWriter.print(str);
            printWriter.print("mInnerView=");
            printWriter.println(this.mView);
        }
        if (getAnimatingAway() != null) {
            printWriter.print(str);
            printWriter.print("mAnimatingAway=");
            printWriter.println(getAnimatingAway());
            printWriter.print(str);
            printWriter.print("mStateAfterAnimating=");
            printWriter.println(getStateAfterAnimating());
        }
        if (getContext() != null) {
            X6FRs_4.EuDEkJe_12.KQgRr5e_0.KQgRr5e_0.KQgRr5e_0(this).KQgRr5e_0(str, fileDescriptor, printWriter, strArr);
        }
        if (this.mChildFragmentManager != null) {
            printWriter.print(str);
            printWriter.println("Child " + this.mChildFragmentManager + ":");
            IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
            iMuAHx_6.KQgRr5e_0(str + "  ", fileDescriptor, printWriter, strArr);
        }
    }

    public final boolean equals(Object obj) {
        return super.equals(obj);
    }

    public Fragment findFragmentByWho(String str) {
        if (str.equals(this.mWho)) {
            return this;
        }
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            return iMuAHx_6.QxJ9d_1(str);
        }
        return null;
    }

    public final FragmentActivity getActivity() {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        if (x6FRs_4 == null) {
            return null;
        }
        return (FragmentActivity) x6FRs_4.KQgRr5e_0();
    }

    public boolean getAllowEnterTransitionOverlap() {
        Boolean bool;
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null || (bool = mqv2r_3.f2329QxJ9d_1) == null) {
            return true;
        }
        return bool.booleanValue();
    }

    public boolean getAllowReturnTransitionOverlap() {
        Boolean bool;
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null || (bool = mqv2r_3.f2323KQgRr5e_0) == null) {
            return true;
        }
        return bool.booleanValue();
    }

    public View getAnimatingAway() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        return mqv2r_3.f2321KQgRr5e_0;
    }

    public Animator getAnimator() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        return mqv2r_3.f2320KQgRr5e_0;
    }

    public final Bundle getArguments() {
        return this.mArguments;
    }

    public final X6FRs_4.XnFJ5_9.KQgRr5e_0.IFxWkV_5 getChildFragmentManager() {
        if (this.mChildFragmentManager == null) {
            instantiateChildFragmentManager();
            int i = this.mState;
            if (i >= 4) {
                this.mChildFragmentManager.XnFJ5_9();
            } else if (i >= 3) {
                this.mChildFragmentManager.Nm6q_10();
            } else if (i >= 2) {
                this.mChildFragmentManager.Mqv2r_3();
            } else if (i >= 1) {
                this.mChildFragmentManager.X6FRs_4();
            }
        }
        return this.mChildFragmentManager;
    }

    public Context getContext() {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        if (x6FRs_4 == null) {
            return null;
        }
        return x6FRs_4.KQgRr5e_0();
    }

    public Object getEnterTransition() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        return mqv2r_3.f2324KQgRr5e_0;
    }

    public X6FRs_4.IMuAHx_6.Mqv2r_3.XnFJ5_9 getEnterTransitionCallback() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        return mqv2r_3.f2319KQgRr5e_0;
    }

    public Object getExitTransition() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        return mqv2r_3.f2327PGPF6hQ_2;
    }

    public X6FRs_4.IMuAHx_6.Mqv2r_3.XnFJ5_9 getExitTransitionCallback() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        return mqv2r_3.f2328QxJ9d_1;
    }

    public final X6FRs_4.XnFJ5_9.KQgRr5e_0.IFxWkV_5 getFragmentManager() {
        return this.mFragmentManager;
    }

    public final Object getHost() {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        if (x6FRs_4 == null) {
            return null;
        }
        return x6FRs_4.KQgRr5e_0();
    }

    public final int getId() {
        return this.mFragmentId;
    }

    public final LayoutInflater getLayoutInflater() {
        LayoutInflater layoutInflater = this.mLayoutInflater;
        return layoutInflater == null ? performGetLayoutInflater(null) : layoutInflater;
    }

    @Override // X6FRs_4.KNBe_11.Xgtqvk_8
    public X6FRs_4.KNBe_11.IFxWkV_5 getLifecycle() {
        return this.mLifecycleRegistry;
    }

    @Deprecated
    public X6FRs_4.EuDEkJe_12.KQgRr5e_0.KQgRr5e_0 getLoaderManager() {
        return X6FRs_4.EuDEkJe_12.KQgRr5e_0.KQgRr5e_0.KQgRr5e_0(this);
    }

    public int getNextAnim() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return 0;
        }
        return mqv2r_3.QxJ9d_1;
    }

    public int getNextTransition() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return 0;
        }
        return mqv2r_3.PGPF6hQ_2;
    }

    public int getNextTransitionStyle() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return 0;
        }
        return mqv2r_3.f3523Mqv2r_3;
    }

    public final Fragment getParentFragment() {
        return this.mParentFragment;
    }

    public Object getReenterTransition() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        Object obj = mqv2r_3.f2326Mqv2r_3;
        return obj == USE_DEFAULT_TRANSITION ? getExitTransition() : obj;
    }

    public final Resources getResources() {
        return requireContext().getResources();
    }

    public final boolean getRetainInstance() {
        return this.mRetainInstance;
    }

    public Object getReturnTransition() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        Object obj = mqv2r_3.f2330QxJ9d_1;
        return obj == USE_DEFAULT_TRANSITION ? getEnterTransition() : obj;
    }

    public Object getSharedElementEnterTransition() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        return mqv2r_3.f3524X6FRs_4;
    }

    public Object getSharedElementReturnTransition() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return null;
        }
        Object obj = mqv2r_3.f3522IFxWkV_5;
        return obj == USE_DEFAULT_TRANSITION ? getSharedElementEnterTransition() : obj;
    }

    public int getStateAfterAnimating() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return 0;
        }
        return mqv2r_3.KQgRr5e_0;
    }

    public final String getString(int i) {
        return getResources().getString(i);
    }

    public final String getTag() {
        return this.mTag;
    }

    public final Fragment getTargetFragment() {
        return this.mTarget;
    }

    public final int getTargetRequestCode() {
        return this.mTargetRequestCode;
    }

    public final CharSequence getText(int i) {
        return getResources().getText(i);
    }

    public boolean getUserVisibleHint() {
        return this.mUserVisibleHint;
    }

    public View getView() {
        return this.mView;
    }

    public Xgtqvk_8 getViewLifecycleOwner() {
        Xgtqvk_8 xgtqvk_8 = this.mViewLifecycleOwner;
        if (xgtqvk_8 != null) {
            return xgtqvk_8;
        }
        throw new IllegalStateException("Can't access the Fragment View's LifecycleOwner when getView() is null i.e., before onCreateView() or after onDestroyView()");
    }

    public LiveData<Xgtqvk_8> getViewLifecycleOwnerLiveData() {
        return this.mViewLifecycleOwnerLiveData;
    }

    @Override // X6FRs_4.KNBe_11.H5YG8fq_22
    public RfjZ_21 getViewModelStore() {
        if (getContext() != null) {
            if (this.mViewModelStore == null) {
                this.mViewModelStore = new RfjZ_21();
            }
            return this.mViewModelStore;
        }
        throw new IllegalStateException("Can't access ViewModels from detached fragment");
    }

    public final boolean hasOptionsMenu() {
        return this.mHasMenu;
    }

    public final int hashCode() {
        return super.hashCode();
    }

    public void initState() {
        this.mIndex = -1;
        this.mWho = null;
        this.mAdded = false;
        this.mRemoving = false;
        this.mFromLayout = false;
        this.mInLayout = false;
        this.mRestored = false;
        this.mBackStackNesting = 0;
        this.mFragmentManager = null;
        this.mChildFragmentManager = null;
        this.mHost = null;
        this.mFragmentId = 0;
        this.mContainerId = 0;
        this.mTag = null;
        this.mHidden = false;
        this.mDetached = false;
        this.mRetaining = false;
    }

    public void instantiateChildFragmentManager() {
        if (this.mHost != null) {
            IMuAHx_6 iMuAHx_6 = new IMuAHx_6();
            this.mChildFragmentManager = iMuAHx_6;
            iMuAHx_6.KQgRr5e_0(this.mHost, new QxJ9d_1(), this);
            return;
        }
        throw new IllegalStateException("Fragment has not been attached yet.");
    }

    public final boolean isAdded() {
        return this.mHost != null && this.mAdded;
    }

    public final boolean isDetached() {
        return this.mDetached;
    }

    public final boolean isHidden() {
        return this.mHidden;
    }

    public boolean isHideReplaced() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return false;
        }
        return mqv2r_3.f2331QxJ9d_1;
    }

    public final boolean isInBackStack() {
        return this.mBackStackNesting > 0;
    }

    public final boolean isInLayout() {
        return this.mInLayout;
    }

    public final boolean isMenuVisible() {
        return this.mMenuVisible;
    }

    public boolean isPostponed() {
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3 == null) {
            return false;
        }
        return mqv2r_3.f2325KQgRr5e_0;
    }

    public final boolean isRemoving() {
        return this.mRemoving;
    }

    public final boolean isResumed() {
        return this.mState >= 4;
    }

    public final boolean isStateSaved() {
        IMuAHx_6 iMuAHx_6 = this.mFragmentManager;
        if (iMuAHx_6 == null) {
            return false;
        }
        return iMuAHx_6.QxJ9d_1();
    }

    public final boolean isVisible() {
        View view;
        return (!isAdded() || isHidden() || (view = this.mView) == null || view.getWindowToken() == null || this.mView.getVisibility() != 0) ? false : true;
    }

    public void noteStateNotSaved() {
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.LGe8pk_15();
        }
    }

    public void onActivityCreated(Bundle bundle) {
        this.mCalled = true;
    }

    public void onActivityResult(int i, int i2, Intent intent) {
    }

    public void onAttach(Context context) {
        this.mCalled = true;
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        Activity KQgRr5e_02 = x6FRs_4 == null ? null : x6FRs_4.KQgRr5e_0();
        if (KQgRr5e_02 != null) {
            this.mCalled = false;
            onAttach(KQgRr5e_02);
        }
    }

    public void onAttachFragment(Fragment fragment) {
    }

    @Override // android.content.ComponentCallbacks
    public void onConfigurationChanged(Configuration configuration) {
        this.mCalled = true;
    }

    public boolean onContextItemSelected(MenuItem menuItem) {
        return false;
    }

    public void onCreate(Bundle bundle) {
        this.mCalled = true;
        restoreChildFragmentState(bundle);
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 == null || iMuAHx_6.m607KQgRr5e_0(1)) {
            return;
        }
        this.mChildFragmentManager.X6FRs_4();
    }

    public Animation onCreateAnimation(int i, boolean z, int i2) {
        return null;
    }

    public Animator onCreateAnimator(int i, boolean z, int i2) {
        return null;
    }

    @Override // android.view.View.OnCreateContextMenuListener
    public void onCreateContextMenu(ContextMenu contextMenu, View view, ContextMenu.ContextMenuInfo contextMenuInfo) {
        getActivity().onCreateContextMenu(contextMenu, view, contextMenuInfo);
    }

    public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {
    }

    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        return null;
    }

    public void onDestroy() {
        boolean z = true;
        this.mCalled = true;
        FragmentActivity activity = getActivity();
        z = (activity == null || !activity.isChangingConfigurations()) ? false : false;
        RfjZ_21 rfjZ_21 = this.mViewModelStore;
        if (rfjZ_21 == null || z) {
            return;
        }
        rfjZ_21.KQgRr5e_0();
    }

    public void onDestroyOptionsMenu() {
    }

    public void onDestroyView() {
        this.mCalled = true;
    }

    public void onDetach() {
        this.mCalled = true;
    }

    public LayoutInflater onGetLayoutInflater(Bundle bundle) {
        return getLayoutInflater(bundle);
    }

    public void onHiddenChanged(boolean z) {
    }

    public void onInflate(Context context, AttributeSet attributeSet, Bundle bundle) {
        this.mCalled = true;
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        Activity KQgRr5e_02 = x6FRs_4 == null ? null : x6FRs_4.KQgRr5e_0();
        if (KQgRr5e_02 != null) {
            this.mCalled = false;
            onInflate(KQgRr5e_02, attributeSet, bundle);
        }
    }

    @Override // android.content.ComponentCallbacks
    public void onLowMemory() {
        this.mCalled = true;
    }

    public void onMultiWindowModeChanged(boolean z) {
    }

    public boolean onOptionsItemSelected(MenuItem menuItem) {
        return false;
    }

    public void onOptionsMenuClosed(Menu menu) {
    }

    public void onPause() {
        this.mCalled = true;
    }

    public void onPictureInPictureModeChanged(boolean z) {
    }

    public void onPrepareOptionsMenu(Menu menu) {
    }

    public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
    }

    public void onResume() {
        this.mCalled = true;
    }

    public void onSaveInstanceState(Bundle bundle) {
    }

    public void onStart() {
        this.mCalled = true;
    }

    public void onStop() {
        this.mCalled = true;
    }

    public void onViewCreated(View view, Bundle bundle) {
    }

    public void onViewStateRestored(Bundle bundle) {
        this.mCalled = true;
    }

    public X6FRs_4.XnFJ5_9.KQgRr5e_0.IFxWkV_5 peekChildFragmentManager() {
        return this.mChildFragmentManager;
    }

    public void performActivityCreated(Bundle bundle) {
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.LGe8pk_15();
        }
        this.mState = 2;
        this.mCalled = false;
        onActivityCreated(bundle);
        if (this.mCalled) {
            IMuAHx_6 iMuAHx_62 = this.mChildFragmentManager;
            if (iMuAHx_62 != null) {
                iMuAHx_62.Mqv2r_3();
                return;
            }
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onActivityCreated()");
    }

    public void performConfigurationChanged(Configuration configuration) {
        onConfigurationChanged(configuration);
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.KQgRr5e_0(configuration);
        }
    }

    public boolean performContextItemSelected(MenuItem menuItem) {
        if (this.mHidden) {
            return false;
        }
        if (onContextItemSelected(menuItem)) {
            return true;
        }
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        return iMuAHx_6 != null && iMuAHx_6.KQgRr5e_0(menuItem);
    }

    public void performCreate(Bundle bundle) {
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.LGe8pk_15();
        }
        this.mState = 1;
        this.mCalled = false;
        onCreate(bundle);
        this.mIsCreated = true;
        if (this.mCalled) {
            this.mLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_CREATE);
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onCreate()");
    }

    public boolean performCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {
        boolean z = false;
        if (this.mHidden) {
            return false;
        }
        if (this.mHasMenu && this.mMenuVisible) {
            onCreateOptionsMenu(menu, menuInflater);
            z = true;
        }
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        return iMuAHx_6 != null ? z | iMuAHx_6.KQgRr5e_0(menu, menuInflater) : z;
    }

    public void performCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.LGe8pk_15();
        }
        this.mPerformedCreateView = true;
        this.mViewLifecycleOwner = new PGPF6hQ_2();
        this.mViewLifecycleRegistry = null;
        View onCreateView = onCreateView(layoutInflater, viewGroup, bundle);
        this.mView = onCreateView;
        if (onCreateView != null) {
            this.mViewLifecycleOwner.getLifecycle();
            this.mViewLifecycleOwnerLiveData.KQgRr5e_0((WwEq_13<Xgtqvk_8>) this.mViewLifecycleOwner);
        } else if (this.mViewLifecycleRegistry == null) {
            this.mViewLifecycleOwner = null;
        } else {
            throw new IllegalStateException("Called getViewLifecycleOwner() but onCreateView() returned null");
        }
    }

    public void performDestroy() {
        this.mLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_DESTROY);
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.IFxWkV_5();
        }
        this.mState = 0;
        this.mCalled = false;
        this.mIsCreated = false;
        onDestroy();
        if (this.mCalled) {
            this.mChildFragmentManager = null;
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onDestroy()");
    }

    public void performDestroyView() {
        if (this.mView != null) {
            this.mViewLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_DESTROY);
        }
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.IMuAHx_6();
        }
        this.mState = 1;
        this.mCalled = false;
        onDestroyView();
        if (this.mCalled) {
            X6FRs_4.EuDEkJe_12.KQgRr5e_0.KQgRr5e_0.KQgRr5e_0(this).KQgRr5e_0();
            this.mPerformedCreateView = false;
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onDestroyView()");
    }

    public void performDetach() {
        this.mCalled = false;
        onDetach();
        this.mLayoutInflater = null;
        if (this.mCalled) {
            IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
            if (iMuAHx_6 != null) {
                if (this.mRetaining) {
                    iMuAHx_6.IFxWkV_5();
                    this.mChildFragmentManager = null;
                    return;
                }
                throw new IllegalStateException("Child FragmentManager of " + this + " was not  destroyed and this fragment is not retaining instance");
            }
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onDetach()");
    }

    public LayoutInflater performGetLayoutInflater(Bundle bundle) {
        LayoutInflater onGetLayoutInflater = onGetLayoutInflater(bundle);
        this.mLayoutInflater = onGetLayoutInflater;
        return onGetLayoutInflater;
    }

    public void performLowMemory() {
        onLowMemory();
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.FSaI4_7();
        }
    }

    public void performMultiWindowModeChanged(boolean z) {
        onMultiWindowModeChanged(z);
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.KQgRr5e_0(z);
        }
    }

    public boolean performOptionsItemSelected(MenuItem menuItem) {
        if (this.mHidden) {
            return false;
        }
        if (this.mHasMenu && this.mMenuVisible && onOptionsItemSelected(menuItem)) {
            return true;
        }
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        return iMuAHx_6 != null && iMuAHx_6.QxJ9d_1(menuItem);
    }

    public void performOptionsMenuClosed(Menu menu) {
        if (this.mHidden) {
            return;
        }
        if (this.mHasMenu && this.mMenuVisible) {
            onOptionsMenuClosed(menu);
        }
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.KQgRr5e_0(menu);
        }
    }

    public void performPause() {
        if (this.mView != null) {
            this.mViewLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_PAUSE);
        }
        this.mLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_PAUSE);
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.Xgtqvk_8();
        }
        this.mState = 3;
        this.mCalled = false;
        onPause();
        if (this.mCalled) {
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onPause()");
    }

    public void performPictureInPictureModeChanged(boolean z) {
        onPictureInPictureModeChanged(z);
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.QxJ9d_1(z);
        }
    }

    public boolean performPrepareOptionsMenu(Menu menu) {
        boolean z = false;
        if (this.mHidden) {
            return false;
        }
        if (this.mHasMenu && this.mMenuVisible) {
            onPrepareOptionsMenu(menu);
            z = true;
        }
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        return iMuAHx_6 != null ? z | iMuAHx_6.m608KQgRr5e_0(menu) : z;
    }

    public void performResume() {
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.LGe8pk_15();
            this.mChildFragmentManager.m610Mqv2r_3();
        }
        this.mState = 4;
        this.mCalled = false;
        onResume();
        if (this.mCalled) {
            IMuAHx_6 iMuAHx_62 = this.mChildFragmentManager;
            if (iMuAHx_62 != null) {
                iMuAHx_62.XnFJ5_9();
                this.mChildFragmentManager.m610Mqv2r_3();
            }
            this.mLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_RESUME);
            if (this.mView != null) {
                this.mViewLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_RESUME);
                return;
            }
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onResume()");
    }

    public void performSaveInstanceState(Bundle bundle) {
        Parcelable KQgRr5e_02;
        onSaveInstanceState(bundle);
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 == null || (KQgRr5e_02 = iMuAHx_6.KQgRr5e_0()) == null) {
            return;
        }
        bundle.putParcelable("android:support:fragments", KQgRr5e_02);
    }

    public void performStart() {
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.LGe8pk_15();
            this.mChildFragmentManager.m610Mqv2r_3();
        }
        this.mState = 3;
        this.mCalled = false;
        onStart();
        if (this.mCalled) {
            IMuAHx_6 iMuAHx_62 = this.mChildFragmentManager;
            if (iMuAHx_62 != null) {
                iMuAHx_62.Nm6q_10();
            }
            this.mLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_START);
            if (this.mView != null) {
                this.mViewLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_START);
                return;
            }
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onStart()");
    }

    public void performStop() {
        if (this.mView != null) {
            this.mViewLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_STOP);
        }
        this.mLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_STOP);
        IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
        if (iMuAHx_6 != null) {
            iMuAHx_6.KNBe_11();
        }
        this.mState = 2;
        this.mCalled = false;
        onStop();
        if (this.mCalled) {
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onStop()");
    }

    public void postponeEnterTransition() {
        ensureAnimationInfo().f2325KQgRr5e_0 = true;
    }

    public void registerForContextMenu(View view) {
        view.setOnCreateContextMenuListener(this);
    }

    public final void requestPermissions(String[] strArr, int i) {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        if (x6FRs_4 != null) {
            x6FRs_4.KQgRr5e_0(this, strArr, i);
            return;
        }
        throw new IllegalStateException("Fragment " + this + " not attached to Activity");
    }

    public final FragmentActivity requireActivity() {
        FragmentActivity activity = getActivity();
        if (activity != null) {
            return activity;
        }
        throw new IllegalStateException("Fragment " + this + " not attached to an activity.");
    }

    public final Context requireContext() {
        Context context = getContext();
        if (context != null) {
            return context;
        }
        throw new IllegalStateException("Fragment " + this + " not attached to a context.");
    }

    public final X6FRs_4.XnFJ5_9.KQgRr5e_0.IFxWkV_5 requireFragmentManager() {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.IFxWkV_5 fragmentManager = getFragmentManager();
        if (fragmentManager != null) {
            return fragmentManager;
        }
        throw new IllegalStateException("Fragment " + this + " not associated with a fragment manager.");
    }

    public final Object requireHost() {
        Object host = getHost();
        if (host != null) {
            return host;
        }
        throw new IllegalStateException("Fragment " + this + " not attached to a host.");
    }

    public void restoreChildFragmentState(Bundle bundle) {
        Parcelable parcelable;
        if (bundle == null || (parcelable = bundle.getParcelable("android:support:fragments")) == null) {
            return;
        }
        if (this.mChildFragmentManager == null) {
            instantiateChildFragmentManager();
        }
        this.mChildFragmentManager.KQgRr5e_0(parcelable, this.mChildNonConfig);
        this.mChildNonConfig = null;
        this.mChildFragmentManager.X6FRs_4();
    }

    public final void restoreViewState(Bundle bundle) {
        SparseArray<Parcelable> sparseArray = this.mSavedViewState;
        if (sparseArray != null) {
            this.mInnerView.restoreHierarchyState(sparseArray);
            this.mSavedViewState = null;
        }
        this.mCalled = false;
        onViewStateRestored(bundle);
        if (this.mCalled) {
            if (this.mView != null) {
                this.mViewLifecycleRegistry.m361KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_CREATE);
                return;
            }
            return;
        }
        throw new X6FRs_4.XnFJ5_9.KQgRr5e_0.WwEq_13("Fragment " + this + " did not call through to super.onViewStateRestored()");
    }

    public void setAllowEnterTransitionOverlap(boolean z) {
        ensureAnimationInfo().f2329QxJ9d_1 = Boolean.valueOf(z);
    }

    public void setAllowReturnTransitionOverlap(boolean z) {
        ensureAnimationInfo().f2323KQgRr5e_0 = Boolean.valueOf(z);
    }

    public void setAnimatingAway(View view) {
        ensureAnimationInfo().f2321KQgRr5e_0 = view;
    }

    public void setAnimator(Animator animator) {
        ensureAnimationInfo().f2320KQgRr5e_0 = animator;
    }

    public void setArguments(Bundle bundle) {
        if (this.mIndex >= 0 && isStateSaved()) {
            throw new IllegalStateException("Fragment already active and state has been saved");
        }
        this.mArguments = bundle;
    }

    public void setEnterSharedElementCallback(X6FRs_4.IMuAHx_6.Mqv2r_3.XnFJ5_9 xnFJ5_9) {
        ensureAnimationInfo().f2319KQgRr5e_0 = xnFJ5_9;
    }

    public void setEnterTransition(Object obj) {
        ensureAnimationInfo().f2324KQgRr5e_0 = obj;
    }

    public void setExitSharedElementCallback(X6FRs_4.IMuAHx_6.Mqv2r_3.XnFJ5_9 xnFJ5_9) {
        ensureAnimationInfo().f2328QxJ9d_1 = xnFJ5_9;
    }

    public void setExitTransition(Object obj) {
        ensureAnimationInfo().f2327PGPF6hQ_2 = obj;
    }

    public void setHasOptionsMenu(boolean z) {
        if (this.mHasMenu != z) {
            this.mHasMenu = z;
            if (!isAdded() || isHidden()) {
                return;
            }
            this.mHost.KQgRr5e_0();
        }
    }

    public void setHideReplaced(boolean z) {
        ensureAnimationInfo().f2331QxJ9d_1 = z;
    }

    public final void setIndex(int i, Fragment fragment) {
        this.mIndex = i;
        if (fragment != null) {
            this.mWho = fragment.mWho + ":" + this.mIndex;
            return;
        }
        this.mWho = "android:fragment:" + this.mIndex;
    }

    public void setInitialSavedState(SavedState savedState) {
        if (this.mIndex < 0) {
            this.mSavedFragmentState = (savedState == null || (r2 = savedState.KQgRr5e_0) == null) ? null : null;
            return;
        }
        throw new IllegalStateException("Fragment already active");
    }

    public void setMenuVisibility(boolean z) {
        if (this.mMenuVisible != z) {
            this.mMenuVisible = z;
            if (this.mHasMenu && isAdded() && !isHidden()) {
                this.mHost.KQgRr5e_0();
            }
        }
    }

    public void setNextAnim(int i) {
        if (this.mAnimationInfo == null && i == 0) {
            return;
        }
        ensureAnimationInfo().QxJ9d_1 = i;
    }

    public void setNextTransition(int i, int i2) {
        if (this.mAnimationInfo == null && i == 0 && i2 == 0) {
            return;
        }
        ensureAnimationInfo();
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        mqv2r_3.PGPF6hQ_2 = i;
        mqv2r_3.f3523Mqv2r_3 = i2;
    }

    public void setOnStartEnterTransitionListener(IFxWkV_5 iFxWkV_5) {
        ensureAnimationInfo();
        IFxWkV_5 iFxWkV_52 = this.mAnimationInfo.f2322KQgRr5e_0;
        if (iFxWkV_5 == iFxWkV_52) {
            return;
        }
        if (iFxWkV_5 != null && iFxWkV_52 != null) {
            throw new IllegalStateException("Trying to set a replacement startPostponedEnterTransition on " + this);
        }
        Mqv2r_3 mqv2r_3 = this.mAnimationInfo;
        if (mqv2r_3.f2325KQgRr5e_0) {
            mqv2r_3.f2322KQgRr5e_0 = iFxWkV_5;
        }
        if (iFxWkV_5 != null) {
            iFxWkV_5.KQgRr5e_0();
        }
    }

    public void setReenterTransition(Object obj) {
        ensureAnimationInfo().f2326Mqv2r_3 = obj;
    }

    public void setRetainInstance(boolean z) {
        this.mRetainInstance = z;
    }

    public void setReturnTransition(Object obj) {
        ensureAnimationInfo().f2330QxJ9d_1 = obj;
    }

    public void setSharedElementEnterTransition(Object obj) {
        ensureAnimationInfo().f3524X6FRs_4 = obj;
    }

    public void setSharedElementReturnTransition(Object obj) {
        ensureAnimationInfo().f3522IFxWkV_5 = obj;
    }

    public void setStateAfterAnimating(int i) {
        ensureAnimationInfo().KQgRr5e_0 = i;
    }

    public void setTargetFragment(Fragment fragment, int i) {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.IFxWkV_5 fragmentManager = getFragmentManager();
        X6FRs_4.XnFJ5_9.KQgRr5e_0.IFxWkV_5 fragmentManager2 = fragment != null ? fragment.getFragmentManager() : null;
        if (fragmentManager != null && fragmentManager2 != null && fragmentManager != fragmentManager2) {
            throw new IllegalArgumentException("Fragment " + fragment + " must share the same FragmentManager to be set as a target fragment");
        }
        for (Fragment fragment2 = fragment; fragment2 != null; fragment2 = fragment2.getTargetFragment()) {
            if (fragment2 == this) {
                throw new IllegalArgumentException("Setting " + fragment + " as the target of " + this + " would create a target cycle");
            }
        }
        this.mTarget = fragment;
        this.mTargetRequestCode = i;
    }

    public void setUserVisibleHint(boolean z) {
        if (!this.mUserVisibleHint && z && this.mState < 3 && this.mFragmentManager != null && isAdded() && this.mIsCreated) {
            this.mFragmentManager.XnFJ5_9(this);
        }
        this.mUserVisibleHint = z;
        this.mDeferStart = this.mState < 3 && !z;
        if (this.mSavedFragmentState != null) {
            this.mSavedUserVisibleHint = Boolean.valueOf(z);
        }
    }

    public boolean shouldShowRequestPermissionRationale(String str) {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        if (x6FRs_4 != null) {
            return x6FRs_4.KQgRr5e_0(str);
        }
        return false;
    }

    public void startActivity(Intent intent) {
        startActivity(intent, null);
    }

    public void startActivityForResult(Intent intent, int i) {
        startActivityForResult(intent, i, null);
    }

    public void startIntentSenderForResult(IntentSender intentSender, int i, Intent intent, int i2, int i3, int i4, Bundle bundle) throws IntentSender.SendIntentException {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        if (x6FRs_4 != null) {
            x6FRs_4.KQgRr5e_0(this, intentSender, i, intent, i2, i3, i4, bundle);
            return;
        }
        throw new IllegalStateException("Fragment " + this + " not attached to Activity");
    }

    public void startPostponedEnterTransition() {
        IMuAHx_6 iMuAHx_6 = this.mFragmentManager;
        if (iMuAHx_6 != null && iMuAHx_6.f1267KQgRr5e_0 != null) {
            if (Looper.myLooper() != this.mFragmentManager.f1267KQgRr5e_0.KQgRr5e_0().getLooper()) {
                this.mFragmentManager.f1267KQgRr5e_0.KQgRr5e_0().postAtFrontOfQueue(new KQgRr5e_0());
                return;
            } else {
                callStartTransitionListener();
                return;
            }
        }
        ensureAnimationInfo().f2325KQgRr5e_0 = false;
    }

    public String toString() {
        StringBuilder sb = new StringBuilder((int) RecyclerView.WGk6X_27.FLAG_IGNORE);
        X6FRs_4.IMuAHx_6.KNBe_11.KQgRr5e_0.KQgRr5e_0(this, sb);
        if (this.mIndex >= 0) {
            sb.append(" #");
            sb.append(this.mIndex);
        }
        if (this.mFragmentId != 0) {
            sb.append(" id=0x");
            sb.append(Integer.toHexString(this.mFragmentId));
        }
        if (this.mTag != null) {
            sb.append(" ");
            sb.append(this.mTag);
        }
        sb.append('}');
        return sb.toString();
    }

    public void unregisterForContextMenu(View view) {
        view.setOnCreateContextMenuListener(null);
    }

    public static Fragment instantiate(Context context, String str, Bundle bundle) {
        try {
            Class<?> cls = sClassMap.get(str);
            if (cls == null) {
                cls = context.getClassLoader().loadClass(str);
                sClassMap.put(str, cls);
            }
            Fragment fragment = (Fragment) cls.getConstructor(new Class[0]).newInstance(new Object[0]);
            if (bundle != null) {
                bundle.setClassLoader(fragment.getClass().getClassLoader());
                fragment.setArguments(bundle);
            }
            return fragment;
        } catch (ClassNotFoundException e) {
            throw new X6FRs_4("Unable to instantiate fragment " + str + ": make sure class name exists, is public, and has an empty constructor that is public", e);
        } catch (IllegalAccessException e2) {
            throw new X6FRs_4("Unable to instantiate fragment " + str + ": make sure class name exists, is public, and has an empty constructor that is public", e2);
        } catch (InstantiationException e3) {
            throw new X6FRs_4("Unable to instantiate fragment " + str + ": make sure class name exists, is public, and has an empty constructor that is public", e3);
        } catch (NoSuchMethodException e4) {
            throw new X6FRs_4("Unable to instantiate fragment " + str + ": could not find Fragment constructor", e4);
        } catch (InvocationTargetException e5) {
            throw new X6FRs_4("Unable to instantiate fragment " + str + ": calling Fragment constructor caused an exception", e5);
        }
    }

    public final String getString(int i, Object... objArr) {
        return getResources().getString(i, objArr);
    }

    public void startActivity(Intent intent, Bundle bundle) {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        if (x6FRs_4 != null) {
            x6FRs_4.KQgRr5e_0(this, intent, -1, bundle);
            return;
        }
        throw new IllegalStateException("Fragment " + this + " not attached to Activity");
    }

    public void startActivityForResult(Intent intent, int i, Bundle bundle) {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        if (x6FRs_4 != null) {
            x6FRs_4.KQgRr5e_0(this, intent, i, bundle);
            return;
        }
        throw new IllegalStateException("Fragment " + this + " not attached to Activity");
    }

    /* loaded from: classes.dex */
    public class QxJ9d_1 extends X6FRs_4.XnFJ5_9.KQgRr5e_0.PGPF6hQ_2 {
        public QxJ9d_1() {
        }

        @Override // X6FRs_4.XnFJ5_9.KQgRr5e_0.PGPF6hQ_2
        public View KQgRr5e_0(int i) {
            View view = Fragment.this.mView;
            if (view != null) {
                return view.findViewById(i);
            }
            throw new IllegalStateException("Fragment does not have a view");
        }

        @Override // X6FRs_4.XnFJ5_9.KQgRr5e_0.PGPF6hQ_2
        public boolean KQgRr5e_0() {
            return Fragment.this.mView != null;
        }

        @Override // X6FRs_4.XnFJ5_9.KQgRr5e_0.PGPF6hQ_2
        public Fragment KQgRr5e_0(Context context, String str, Bundle bundle) {
            return Fragment.this.mHost.KQgRr5e_0(context, str, bundle);
        }
    }

    @Deprecated
    public LayoutInflater getLayoutInflater(Bundle bundle) {
        X6FRs_4.XnFJ5_9.KQgRr5e_0.X6FRs_4 x6FRs_4 = this.mHost;
        if (x6FRs_4 != null) {
            LayoutInflater KQgRr5e_02 = x6FRs_4.KQgRr5e_0();
            getChildFragmentManager();
            IMuAHx_6 iMuAHx_6 = this.mChildFragmentManager;
            iMuAHx_6.KQgRr5e_0();
            X6FRs_4.IMuAHx_6.EuDEkJe_12.X6FRs_4.QxJ9d_1(KQgRr5e_02, iMuAHx_6);
            return KQgRr5e_02;
        }
        throw new IllegalStateException("onGetLayoutInflater() cannot be executed until the Fragment is attached to the FragmentManager.");
    }

    @Deprecated
    public void onAttach(Activity activity) {
        this.mCalled = true;
    }

    @Deprecated
    public void onInflate(Activity activity, AttributeSet attributeSet, Bundle bundle) {
        this.mCalled = true;
    }
}
