31 lines
1.2 KiB
Java
31 lines
1.2 KiB
Java
package com.google.firebase.messaging;
|
|
|
|
import android.os.Bundle;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelReader;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class zzv implements Parcelable.Creator<RemoteMessage> {
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ RemoteMessage[] newArray(int i) {
|
|
return new RemoteMessage[i];
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ RemoteMessage createFromParcel(Parcel parcel) {
|
|
int validateObjectHeader = SafeParcelReader.validateObjectHeader(parcel);
|
|
Bundle bundle = null;
|
|
while (parcel.dataPosition() < validateObjectHeader) {
|
|
int readHeader = SafeParcelReader.readHeader(parcel);
|
|
if (SafeParcelReader.getFieldId(readHeader) == 2) {
|
|
bundle = SafeParcelReader.createBundle(parcel, readHeader);
|
|
} else {
|
|
SafeParcelReader.skipUnknownField(parcel, readHeader);
|
|
}
|
|
}
|
|
SafeParcelReader.ensureAtEnd(parcel, validateObjectHeader);
|
|
return new RemoteMessage(bundle);
|
|
}
|
|
}
|