what-the-bank/sources/com/google/android/gms/auth/api/credentials/zzg.java

67 lines
2.9 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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 zzg implements Parcelable.Creator<CredentialRequest> {
@Override // android.os.Parcelable.Creator
public final /* synthetic */ CredentialRequest[] newArray(int i) {
return new CredentialRequest[i];
}
@Override // android.os.Parcelable.Creator
public final /* synthetic */ CredentialRequest createFromParcel(Parcel parcel) {
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
int i = 0;
boolean z = false;
boolean z2 = false;
boolean z3 = false;
String[] strArr = null;
CredentialPickerConfig credentialPickerConfig = null;
CredentialPickerConfig credentialPickerConfig2 = null;
String str = null;
String str2 = null;
while (parcel.dataPosition() < validateObjectHeader) {
int readHeader = SafeParcelReader.readHeader(parcel);
int fieldId = SafeParcelReader.getFieldId(readHeader);
if (fieldId != 1000) {
switch (fieldId) {
case 1:
z = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 2:
strArr = SafeParcelReader.createStringArray(parcel, readHeader);
break;
case 3:
credentialPickerConfig = (CredentialPickerConfig) SafeParcelReader.createParcelable(parcel, readHeader, CredentialPickerConfig.CREATOR);
break;
case 4:
credentialPickerConfig2 = (CredentialPickerConfig) SafeParcelReader.createParcelable(parcel, readHeader, CredentialPickerConfig.CREATOR);
break;
case 5:
z2 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
case 6:
str = SafeParcelReader.createString(parcel, readHeader);
break;
case 7:
str2 = SafeParcelReader.createString(parcel, readHeader);
break;
case 8:
z3 = SafeParcelReader.readBoolean(parcel, readHeader);
break;
default:
SafeParcelReader.skipUnknownField(parcel, readHeader);
break;
}
} else {
i = SafeParcelReader.readInt(parcel, readHeader);
}
}
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
return new CredentialRequest(i, z, strArr, credentialPickerConfig, credentialPickerConfig2, z2, str, str2, z3);
}
}