package androidx.fragment.app;

import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;

/* renamed from: androidx.fragment.app.r */
/* loaded from: classes.dex */
public final class C0369r implements Parcelable {
    public static final Parcelable.Creator<C0369r> CREATOR = new C0370a();

    /* renamed from: d */
    public final String f1478d;

    /* renamed from: e */
    public final String f1479e;

    /* renamed from: f */
    public final boolean f1480f;

    /* renamed from: g */
    public final int f1481g;

    /* renamed from: h */
    public final int f1482h;

    /* renamed from: i */
    public final String f1483i;

    /* renamed from: j */
    public final boolean f1484j;

    /* renamed from: k */
    public final boolean f1485k;

    /* renamed from: l */
    public final boolean f1486l;

    /* renamed from: m */
    public final Bundle f1487m;

    /* renamed from: n */
    public final boolean f1488n;

    /* renamed from: o */
    public final int f1489o;

    /* renamed from: p */
    public Bundle f1490p;

    /* renamed from: androidx.fragment.app.r$a */
    /* loaded from: classes.dex */
    public class C0370a implements Parcelable.Creator<C0369r> {
        @Override // android.os.Parcelable.Creator
        /* renamed from: a */
        public C0369r createFromParcel(Parcel parcel) {
            return new C0369r(parcel);
        }

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

    public C0369r(Parcel parcel) {
        this.f1478d = parcel.readString();
        this.f1479e = parcel.readString();
        this.f1480f = parcel.readInt() != 0;
        this.f1481g = parcel.readInt();
        this.f1482h = parcel.readInt();
        this.f1483i = parcel.readString();
        this.f1484j = parcel.readInt() != 0;
        this.f1485k = parcel.readInt() != 0;
        this.f1486l = parcel.readInt() != 0;
        this.f1487m = parcel.readBundle();
        this.f1488n = parcel.readInt() != 0;
        this.f1490p = parcel.readBundle();
        this.f1489o = parcel.readInt();
    }

    public C0369r(Fragment fragment) {
        this.f1478d = fragment.getClass().getName();
        this.f1479e = fragment.f1186i;
        this.f1480f = fragment.f1194q;
        this.f1481g = fragment.f1203z;
        this.f1482h = fragment.f1152A;
        this.f1483i = fragment.f1153B;
        this.f1484j = fragment.f1156E;
        this.f1485k = fragment.f1193p;
        this.f1486l = fragment.f1155D;
        this.f1487m = fragment.f1187j;
        this.f1488n = fragment.f1154C;
        this.f1489o = fragment.f1172U.ordinal();
    }

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

    public String toString() {
        StringBuilder sb = new StringBuilder(128);
        sb.append("FragmentState{");
        sb.append(this.f1478d);
        sb.append(" (");
        sb.append(this.f1479e);
        sb.append(")}:");
        if (this.f1480f) {
            sb.append(" fromLayout");
        }
        if (this.f1482h != 0) {
            sb.append(" id=0x");
            sb.append(Integer.toHexString(this.f1482h));
        }
        String str = this.f1483i;
        if (str != null && !str.isEmpty()) {
            sb.append(" tag=");
            sb.append(this.f1483i);
        }
        if (this.f1484j) {
            sb.append(" retainInstance");
        }
        if (this.f1485k) {
            sb.append(" removing");
        }
        if (this.f1486l) {
            sb.append(" detached");
        }
        if (this.f1488n) {
            sb.append(" hidden");
        }
        return sb.toString();
    }

    @Override // android.os.Parcelable
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(this.f1478d);
        parcel.writeString(this.f1479e);
        parcel.writeInt(this.f1480f ? 1 : 0);
        parcel.writeInt(this.f1481g);
        parcel.writeInt(this.f1482h);
        parcel.writeString(this.f1483i);
        parcel.writeInt(this.f1484j ? 1 : 0);
        parcel.writeInt(this.f1485k ? 1 : 0);
        parcel.writeInt(this.f1486l ? 1 : 0);
        parcel.writeBundle(this.f1487m);
        parcel.writeInt(this.f1488n ? 1 : 0);
        parcel.writeBundle(this.f1490p);
        parcel.writeInt(this.f1489o);
    }
}