package androidx.fragment.app; import android.os.Parcel; import android.os.Parcelable; import androidx.fragment.app.FragmentManager; import java.util.ArrayList; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class FragmentManagerState implements Parcelable { public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // from class: androidx.fragment.app.FragmentManagerState.1 /* JADX WARN: Can't rename method to resolve collision */ @Override // android.os.Parcelable.Creator public FragmentManagerState createFromParcel(Parcel parcel) { return new FragmentManagerState(parcel); } /* JADX WARN: Can't rename method to resolve collision */ @Override // android.os.Parcelable.Creator public FragmentManagerState[] newArray(int i) { return new FragmentManagerState[i]; } }; ArrayList mActive; ArrayList mAdded; BackStackRecordState[] mBackStack; int mBackStackIndex; ArrayList mBackStackStateKeys; ArrayList mBackStackStates; ArrayList mLaunchedFragments; String mPrimaryNavActiveWho; @Override // android.os.Parcelable public int describeContents() { return 0; } public FragmentManagerState() { this.mPrimaryNavActiveWho = null; this.mBackStackStateKeys = new ArrayList<>(); this.mBackStackStates = new ArrayList<>(); } public FragmentManagerState(Parcel parcel) { this.mPrimaryNavActiveWho = null; this.mBackStackStateKeys = new ArrayList<>(); this.mBackStackStates = new ArrayList<>(); this.mActive = parcel.createStringArrayList(); this.mAdded = parcel.createStringArrayList(); this.mBackStack = (BackStackRecordState[]) parcel.createTypedArray(BackStackRecordState.CREATOR); this.mBackStackIndex = parcel.readInt(); this.mPrimaryNavActiveWho = parcel.readString(); this.mBackStackStateKeys = parcel.createStringArrayList(); this.mBackStackStates = parcel.createTypedArrayList(BackStackState.CREATOR); this.mLaunchedFragments = parcel.createTypedArrayList(FragmentManager.LaunchedFragmentInfo.CREATOR); } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i) { parcel.writeStringList(this.mActive); parcel.writeStringList(this.mAdded); parcel.writeTypedArray(this.mBackStack, i); parcel.writeInt(this.mBackStackIndex); parcel.writeString(this.mPrimaryNavActiveWho); parcel.writeStringList(this.mBackStackStateKeys); parcel.writeTypedList(this.mBackStackStates); parcel.writeTypedList(this.mLaunchedFragments); } }