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

34 lines
1.4 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 zzn implements Parcelable.Creator<StreetViewPanoramaLink> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ StreetViewPanoramaLink[] newArray(int i) {
return new StreetViewPanoramaLink[i];
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ StreetViewPanoramaLink createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
String str = null;
float f = BitmapDescriptorFactory.HUE_RED;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 2) {
str = SafeParcelReader.createString(parcel, readHeader);
} else if (fieldId == 3) {
f = SafeParcelReader.readFloat(parcel, readHeader);
} else {
SafeParcelReader.skipUnknownField(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new StreetViewPanoramaLink(str, f);
}
}