package o; import android.content.Intent; import android.os.Parcel; import android.os.Parcelable; import com.airbnb.deeplinkdispatch.UrlTreeKt; /* loaded from: classes.dex */ public final class Heg implements Parcelable { public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // from class: o.Heg.2 @Override // android.os.Parcelable.Creator public final /* synthetic */ Heg createFromParcel(Parcel parcel) { return new Heg(parcel); } @Override // android.os.Parcelable.Creator public final /* bridge */ /* synthetic */ Heg[] newArray(int i) { return new Heg[i]; } }; public final Intent b; public final int e; @Override // android.os.Parcelable public final int describeContents() { return 0; } public Heg(int i, Intent intent) { this.e = i; this.b = intent; } Heg(Parcel parcel) { this.e = parcel.readInt(); this.b = parcel.readInt() == 0 ? null : (Intent) Intent.CREATOR.createFromParcel(parcel); } public final String toString() { String str; StringBuilder sb = new StringBuilder("ActivityResult{resultCode="); int i = this.e; if (i != -1) { str = i != 0 ? String.valueOf(i) : "RESULT_CANCELED"; } else { str = "RESULT_OK"; } sb.append(str); sb.append(", data="); sb.append(this.b); sb.append(UrlTreeKt.componentParamSuffixChar); return sb.toString(); } @Override // android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { parcel.writeInt(this.e); parcel.writeInt(this.b == null ? 0 : 1); Intent intent = this.b; if (intent != null) { intent.writeToParcel(parcel, i); } } }