what-the-bank/sources/com/google/android/gms/common/internal/zaa.java

34 lines
1.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.common.internal;
import android.os.Parcel;
import android.os.Parcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
/* loaded from: classes.dex */
public final class zaa implements Parcelable.Creator<ClientIdentity> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ ClientIdentity createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
String str = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId == 1) {
i = SafeParcelReader.readInt(parcel, readHeader);
} else if (fieldId == 2) {
str = SafeParcelReader.createString(parcel, readHeader);
} else {
SafeParcelReader.skipUnknownField(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new ClientIdentity(i, str);
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ ClientIdentity[] newArray(int i) {
return new ClientIdentity[i];
}
}