34 lines
1.3 KiB
Java
34 lines
1.3 KiB
Java
|
package com.google.android.gms.auth.api.credentials;
|
||
|
|
||
|
import android.os.Parcel;
|
||
|
import android.os.Parcelable;
|
||
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class zzk implements Parcelable.Creator<IdToken> {
|
||
|
@Override // android.os.Parcelable.Creator
|
||
|
public final /* synthetic */ IdToken[] newArray(int i) {
|
||
|
return new IdToken[i];
|
||
|
}
|
||
|
|
||
|
@Override // android.os.Parcelable.Creator
|
||
|
public final /* synthetic */ IdToken createFromParcel(Parcel parcel) {
|
||
|
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
||
|
String str = null;
|
||
|
String str2 = null;
|
||
|
while (parcel.dataPosition() < validateObjectHeader) {
|
||
|
int readHeader = SafeParcelReader.readHeader(parcel);
|
||
|
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
||
|
if (fieldId == 1) {
|
||
|
str = SafeParcelReader.createString(parcel, readHeader);
|
||
|
} else if (fieldId == 2) {
|
||
|
str2 = SafeParcelReader.createString(parcel, readHeader);
|
||
|
} else {
|
||
|
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
||
|
}
|
||
|
}
|
||
|
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
||
|
return new IdToken(str, str2);
|
||
|
}
|
||
|
}
|