34 lines
1.4 KiB
Java
34 lines
1.4 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 zze implements Parcelable.Creator<LatLngBounds> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ LatLngBounds[] newArray(int i) {
|
|
return new LatLngBounds[i];
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ LatLngBounds createFromParcel(Parcel parcel) {
|
|
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
|
LatLng latLng = null;
|
|
LatLng latLng2 = 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 {
|
|
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
|
}
|
|
}
|
|
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
|
return new LatLngBounds(latLng, latLng2);
|
|
}
|
|
}
|