35 lines
1.5 KiB
Java
35 lines
1.5 KiB
Java
package com.google.android.gms.location;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.google.android.gms.common.api.Status;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzbt implements Parcelable.Creator {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ Object createFromParcel(Parcel parcel) {
|
|
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
|
Status status = null;
|
|
LocationSettingsStates locationSettingsStates = null;
|
|
while (parcel.dataPosition() < validateObjectHeader) {
|
|
int readHeader = SafeParcelReader.readHeader(parcel);
|
|
int fieldId = SafeParcelReader.getFieldId(readHeader);
|
|
if (fieldId == 1) {
|
|
status = (Status) SafeParcelReader.createParcelable(parcel, readHeader, Status.CREATOR);
|
|
} else if (fieldId == 2) {
|
|
locationSettingsStates = (LocationSettingsStates) SafeParcelReader.createParcelable(parcel, readHeader, LocationSettingsStates.CREATOR);
|
|
} else {
|
|
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
|
}
|
|
}
|
|
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
|
return new LocationSettingsResult(status, locationSettingsStates);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ Object[] newArray(int i) {
|
|
return new LocationSettingsResult[i];
|
|
}
|
|
}
|