package a4; import android.app.Application; import android.content.Context; import com.google.android.gms.common.api.internal.BackgroundDetector; import com.google.android.gms.internal.p002firebaseauthapi.zzadu; /* loaded from: classes2.dex */ public final class j0 { /* renamed from: a, reason: collision with root package name */ private volatile int f92a; /* renamed from: b, reason: collision with root package name */ private final l f93b; /* renamed from: c, reason: collision with root package name */ private volatile boolean f94c; public j0(w3.f fVar) { Context k10 = fVar.k(); l lVar = new l(fVar); this.f94c = false; this.f92a = 0; this.f93b = lVar; BackgroundDetector.initialize((Application) k10.getApplicationContext()); BackgroundDetector.getInstance().addListener(new i0(this)); } /* JADX INFO: Access modifiers changed from: private */ public final boolean f() { return this.f92a > 0 && !this.f94c; } public final void c() { this.f93b.b(); } public final void d(zzadu zzaduVar) { if (zzaduVar == null) { return; } long zzb = zzaduVar.zzb(); if (zzb <= 0) { zzb = 3600; } long zzc = zzaduVar.zzc() + (zzb * 1000); l lVar = this.f93b; lVar.f99b = zzc; lVar.f100c = -1L; if (f()) { this.f93b.c(); } } }