what-the-bank/sources/com/google/android/gms/ads/identifier/zzb.java

41 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.ads.identifier;
import java.lang.ref.WeakReference;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class zzb extends Thread {
final CountDownLatch zza = new CountDownLatch(1);
boolean zzb = false;
private final WeakReference<AdvertisingIdClient> zzc;
private final long zzd;
public zzb(AdvertisingIdClient advertisingIdClient, long j) {
this.zzc = new WeakReference<>(advertisingIdClient);
this.zzd = j;
start();
}
private final void zza() {
AdvertisingIdClient advertisingIdClient = this.zzc.get();
if (advertisingIdClient != null) {
advertisingIdClient.zza();
this.zzb = true;
}
}
@Override // java.lang.Thread, java.lang.Runnable
public final void run() {
try {
if (this.zza.await(this.zzd, TimeUnit.MILLISECONDS)) {
return;
}
zza();
} catch (InterruptedException unused) {
zza();
}
}
}