Files
rr3-apk/decompiled-community/sources/com/google/android/gms/internal/ads/zzdw.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

94 lines
2.8 KiB
Java

package com.google.android.gms.internal.ads;
import android.content.Context;
import android.content.IntentFilter;
import android.os.Handler;
import android.os.Looper;
import androidx.annotation.GuardedBy;
import androidx.annotation.Nullable;
import java.lang.ref.WeakReference;
import java.util.Iterator;
import java.util.concurrent.CopyOnWriteArrayList;
/* loaded from: classes3.dex */
public final class zzdw {
@Nullable
private static zzdw zza;
private final Handler zzb = new Handler(Looper.getMainLooper());
private final CopyOnWriteArrayList zzc = new CopyOnWriteArrayList();
private final Object zzd = new Object();
@GuardedBy("networkTypeLock")
private int zze = 0;
private zzdw(Context context) {
IntentFilter intentFilter = new IntentFilter();
intentFilter.addAction("android.net.conn.CONNECTIVITY_CHANGE");
context.registerReceiver(new zzdu(this, null), intentFilter);
}
public static synchronized zzdw zzb(Context context) {
zzdw zzdwVar;
synchronized (zzdw.class) {
try {
if (zza == null) {
zza = new zzdw(context);
}
zzdwVar = zza;
} catch (Throwable th) {
throw th;
}
}
return zzdwVar;
}
public static /* synthetic */ void zzc(zzdw zzdwVar, int i) {
synchronized (zzdwVar.zzd) {
try {
if (zzdwVar.zze == i) {
return;
}
zzdwVar.zze = i;
Iterator it = zzdwVar.zzc.iterator();
while (it.hasNext()) {
WeakReference weakReference = (WeakReference) it.next();
zzyl zzylVar = (zzyl) weakReference.get();
if (zzylVar != null) {
zzylVar.zza.zzl(i);
} else {
zzdwVar.zzc.remove(weakReference);
}
}
} catch (Throwable th) {
throw th;
}
}
}
public final int zza() {
int i;
synchronized (this.zzd) {
i = this.zze;
}
return i;
}
public final void zzd(final zzyl zzylVar) {
Iterator it = this.zzc.iterator();
while (it.hasNext()) {
WeakReference weakReference = (WeakReference) it.next();
if (weakReference.get() == null) {
this.zzc.remove(weakReference);
}
}
this.zzc.add(new WeakReference(zzylVar));
this.zzb.post(new Runnable() { // from class: com.google.android.gms.internal.ads.zzds
@Override // java.lang.Runnable
public final void run() {
zzylVar.zza.zzl(zzdw.this.zza());
}
});
}
}