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

34 lines
1.3 KiB
Java
Raw 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 zzf implements Parcelable.Creator<LatLng> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ LatLng[] newArray(int i) {
return new LatLng[i];
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ LatLng createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
double d = 0.0d;
double d2 = 0.0d;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 2) {
d = SafeParcelReader.readDouble(parcel, readHeader);
} else if (fieldId == 3) {
d2 = SafeParcelReader.readDouble(parcel, readHeader);
} else {
SafeParcelReader.skipUnknownField(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new LatLng(d, d2);
}
}