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

37 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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 zzo implements Parcelable.Creator<StreetViewPanoramaLocation> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ StreetViewPanoramaLocation[] newArray(int i) {
return new StreetViewPanoramaLocation[i];
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ StreetViewPanoramaLocation createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
StreetViewPanoramaLink[] streetViewPanoramaLinkArr = null;
LatLng latLng = null;
String str = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 2) {
streetViewPanoramaLinkArr = (StreetViewPanoramaLink[]) SafeParcelReader.createTypedArray(parcel, readHeader, StreetViewPanoramaLink.CREATOR);
} else if (fieldId == 3) {
latLng = (LatLng) SafeParcelReader.createParcelable(parcel, readHeader, LatLng.CREATOR);
} else if (fieldId == 4) {
str = SafeParcelReader.createString(parcel, readHeader);
} else {
SafeParcelReader.skipUnknownField(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new StreetViewPanoramaLocation(streetViewPanoramaLinkArr, latLng, str);
}
}