what-the-bank/sources/com/google/android/gms/maps/model/zzj.java

37 lines
1.5 KiB
Java

package com.google.android.gms.maps.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes2.dex */
public final class zzj implements Parcelable.Creator<PointOfInterest> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ PointOfInterest[] newArray(int i) {
return new PointOfInterest[i];
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ PointOfInterest createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
LatLng latLng = null;
String str = null;
String str2 = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 2) {
latLng = (LatLng) SafeParcelReader.createParcelable(parcel, readHeader, LatLng.CREATOR);
} else if (fieldId == 3) {
str = SafeParcelReader.createString(parcel, readHeader);
} else if (fieldId == 4) {
str2 = SafeParcelReader.createString(parcel, readHeader);
} else {
SafeParcelReader.skipUnknownField(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new PointOfInterest(latLng, str, str2);
}
}