43 lines
2.0 KiB
Java
43 lines
2.0 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 zzv implements Parcelable.Creator<VisibleRegion> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ VisibleRegion[] newArray(int i) {
|
|
return new VisibleRegion[i];
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ VisibleRegion createFromParcel(Parcel parcel) {
|
|
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
|
LatLng latLng = null;
|
|
LatLng latLng2 = null;
|
|
LatLng latLng3 = null;
|
|
LatLng latLng4 = null;
|
|
LatLngBounds latLngBounds = 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) {
|
|
latLng2 = (LatLng) SafeParcelReader.createParcelable(parcel, readHeader, LatLng.CREATOR);
|
|
} else if (fieldId == 4) {
|
|
latLng3 = (LatLng) SafeParcelReader.createParcelable(parcel, readHeader, LatLng.CREATOR);
|
|
} else if (fieldId == 5) {
|
|
latLng4 = (LatLng) SafeParcelReader.createParcelable(parcel, readHeader, LatLng.CREATOR);
|
|
} else if (fieldId == 6) {
|
|
latLngBounds = (LatLngBounds) SafeParcelReader.createParcelable(parcel, readHeader, LatLngBounds.CREATOR);
|
|
} else {
|
|
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
|
}
|
|
}
|
|
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
|
return new VisibleRegion(latLng, latLng2, latLng3, latLng4, latLngBounds);
|
|
}
|
|
}
|