package com.google.firebase.messaging; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; /* loaded from: classes2.dex */ final class zzac extends BroadcastReceiver { final zzad zza; private zzad zzb; public zzac(zzad zzadVar, zzad zzadVar2) { this.zza = zzadVar; this.zzb = zzadVar2; } @Override // android.content.BroadcastReceiver public final void onReceive(Context context, Intent intent) { boolean zzb; zzab zzabVar; synchronized (this) { zzad zzadVar = this.zzb; if (zzadVar == null) { return; } zzb = zzadVar.zzb(); if (zzb) { zzad.zzc(); zzabVar = this.zzb.zzd; zzabVar.zza(this.zzb, 0L); context.unregisterReceiver(this); this.zzb = null; } } } }