Files
rr3-apk/decompiled-community/sources/com/google/android/gms/measurement/internal/zzgg.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

70 lines
2.3 KiB
Java

package com.google.android.gms.measurement.internal;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import androidx.annotation.MainThread;
import androidx.annotation.WorkerThread;
import com.google.android.gms.common.internal.Preconditions;
/* loaded from: classes3.dex */
class zzgg extends BroadcastReceiver {
private final zznc zza;
private boolean zzb;
private boolean zzc;
public zzgg(zznc zzncVar) {
Preconditions.checkNotNull(zzncVar);
this.zza = zzncVar;
}
@Override // android.content.BroadcastReceiver
@MainThread
public void onReceive(Context context, Intent intent) {
this.zza.zzs();
String action = intent.getAction();
this.zza.zzj().zzp().zza("NetworkBroadcastReceiver received action", action);
if ("android.net.conn.CONNECTIVITY_CHANGE".equals(action)) {
boolean zzu = this.zza.zzh().zzu();
if (this.zzc != zzu) {
this.zzc = zzu;
this.zza.zzl().zzb(new zzgj(this, zzu));
return;
}
return;
}
this.zza.zzj().zzu().zza("NetworkBroadcastReceiver received unknown action", action);
}
@WorkerThread
public final void zza() {
this.zza.zzs();
this.zza.zzl().zzt();
if (this.zzb) {
return;
}
this.zza.zza().registerReceiver(this, new IntentFilter("android.net.conn.CONNECTIVITY_CHANGE"));
this.zzc = this.zza.zzh().zzu();
this.zza.zzj().zzp().zza("Registering connectivity change receiver. Network connected", Boolean.valueOf(this.zzc));
this.zzb = true;
}
@WorkerThread
public final void zzb() {
this.zza.zzs();
this.zza.zzl().zzt();
this.zza.zzl().zzt();
if (this.zzb) {
this.zza.zzj().zzp().zza("Unregistering connectivity change receiver");
this.zzb = false;
this.zzc = false;
try {
this.zza.zza().unregisterReceiver(this);
} catch (IllegalArgumentException e) {
this.zza.zzj().zzg().zza("Failed to unregister the network broadcast receiver", e);
}
}
}
}