what-the-bank/sources/com/google/firebase/iid/zzba.java

32 lines
906 B
Java

package com.google.firebase.iid;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
/* loaded from: classes2.dex */
final class zzba extends BroadcastReceiver {
private zzbb zza;
public zzba(zzbb zzbbVar) {
this.zza = zzbbVar;
}
public final void zza() {
FirebaseInstanceId.zzd();
this.zza.zza().registerReceiver(this, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE"));
}
@Override // android.content.BroadcastReceiver
public final void onReceive(Context context, Intent intent) {
zzbb zzbbVar = this.zza;
if (zzbbVar != null && zzbbVar.zzb()) {
FirebaseInstanceId.zzd();
FirebaseInstanceId.zza(this.zza, 0L);
this.zza.zza().unregisterReceiver(this);
this.zza = null;
}
}
}