Rabbit-R1/switch port/java/sources/androidx/fragment/app/FragmentManagerState.java
2024-05-21 17:08:36 -04:00

69 lines
2.8 KiB
Java

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<FragmentManagerState> CREATOR = new Parcelable.Creator<FragmentManagerState>() { // 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<String> mActive;
ArrayList<String> mAdded;
BackStackRecordState[] mBackStack;
int mBackStackIndex;
ArrayList<String> mBackStackStateKeys;
ArrayList<BackStackState> mBackStackStates;
ArrayList<FragmentManager.LaunchedFragmentInfo> 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);
}
}