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

63 lines
1.6 KiB
Java

package com.google.android.gms.tasks;
import androidx.annotation.NonNull;
import java.util.concurrent.ExecutionException;
/* loaded from: classes3.dex */
final class zzaf<T> implements zzae<T> {
private final Object zza = new Object();
private final int zzb;
private final zzw zzc;
private int zzd;
private int zze;
private int zzf;
private Exception zzg;
private boolean zzh;
public zzaf(int i, zzw zzwVar) {
this.zzb = i;
this.zzc = zzwVar;
}
private final void zza() {
if (this.zzd + this.zze + this.zzf == this.zzb) {
if (this.zzg == null) {
if (this.zzh) {
this.zzc.zzc();
return;
} else {
this.zzc.zzb(null);
return;
}
}
this.zzc.zza(new ExecutionException(this.zze + " out of " + this.zzb + " underlying tasks failed", this.zzg));
}
}
@Override // com.google.android.gms.tasks.OnCanceledListener
public final void onCanceled() {
synchronized (this.zza) {
this.zzf++;
this.zzh = true;
zza();
}
}
@Override // com.google.android.gms.tasks.OnFailureListener
public final void onFailure(@NonNull Exception exc) {
synchronized (this.zza) {
this.zze++;
this.zzg = exc;
zza();
}
}
@Override // com.google.android.gms.tasks.OnSuccessListener
public final void onSuccess(T t) {
synchronized (this.zza) {
this.zzd++;
zza();
}
}
}