package o; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import androidx.fragment.app.Fragment; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public final class mbI implements Parcelable { public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // from class: o.mbI.1 @Override // android.os.Parcelable.Creator public final /* synthetic */ mbI createFromParcel(Parcel parcel) { return new mbI(parcel); } @Override // android.os.Parcelable.Creator public final /* bridge */ /* synthetic */ mbI[] newArray(int i) { return new mbI[i]; } }; final int a; final String b; final Bundle c; final boolean d; final int e; final boolean f; final boolean g; final boolean h; final boolean i; final int j; final String k; Bundle l; final String n; @Override // android.os.Parcelable public final int describeContents() { return 0; } /* JADX INFO: Access modifiers changed from: package-private */ public mbI(Fragment fragment) { this.b = fragment.getClass().getName(); this.n = fragment.mWho; this.f = fragment.mFromLayout; this.e = fragment.mFragmentId; this.a = fragment.mContainerId; this.k = fragment.mTag; this.g = fragment.mRetainInstance; this.h = fragment.mRemoving; this.d = fragment.mDetached; this.c = fragment.mArguments; this.i = fragment.mHidden; this.j = fragment.mMaxState.ordinal(); } mbI(Parcel parcel) { this.b = parcel.readString(); this.n = parcel.readString(); this.f = parcel.readInt() != 0; this.e = parcel.readInt(); this.a = parcel.readInt(); this.k = parcel.readString(); this.g = parcel.readInt() != 0; this.h = parcel.readInt() != 0; this.d = parcel.readInt() != 0; this.c = parcel.readBundle(); this.i = parcel.readInt() != 0; this.l = parcel.readBundle(); this.j = parcel.readInt(); } public final String toString() { StringBuilder sb = new StringBuilder(128); sb.append("FragmentState{"); sb.append(this.b); sb.append(" ("); sb.append(this.n); sb.append(")}:"); if (this.f) { sb.append(" fromLayout"); } if (this.a != 0) { sb.append(" id=0x"); sb.append(Integer.toHexString(this.a)); } String str = this.k; if (str != null && !str.isEmpty()) { sb.append(" tag="); sb.append(this.k); } if (this.g) { sb.append(" retainInstance"); } if (this.h) { sb.append(" removing"); } if (this.d) { sb.append(" detached"); } if (this.i) { sb.append(" hidden"); } return sb.toString(); } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { parcel.writeString(this.b); parcel.writeString(this.n); parcel.writeInt(this.f ? 1 : 0); parcel.writeInt(this.e); parcel.writeInt(this.a); parcel.writeString(this.k); parcel.writeInt(this.g ? 1 : 0); parcel.writeInt(this.h ? 1 : 0); parcel.writeInt(this.d ? 1 : 0); parcel.writeBundle(this.c); parcel.writeInt(this.i ? 1 : 0); parcel.writeBundle(this.l); parcel.writeInt(this.j); } }