mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 19:37:18 +01:00
43 lines
1.2 KiB
Java
43 lines
1.2 KiB
Java
package com.google.android.gms.tasks;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import java.util.concurrent.Executor;
|
|
import javax.annotation.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
final class zzh implements zzq {
|
|
private final Executor zza;
|
|
private final Object zzb = new Object();
|
|
|
|
@Nullable
|
|
private OnCanceledListener zzc;
|
|
|
|
public zzh(@NonNull Executor executor, @NonNull OnCanceledListener onCanceledListener) {
|
|
this.zza = executor;
|
|
this.zzc = onCanceledListener;
|
|
}
|
|
|
|
@Override // com.google.android.gms.tasks.zzq
|
|
public final void zzc() {
|
|
synchronized (this.zzb) {
|
|
this.zzc = null;
|
|
}
|
|
}
|
|
|
|
@Override // com.google.android.gms.tasks.zzq
|
|
public final void zzd(@NonNull Task task) {
|
|
if (task.isCanceled()) {
|
|
synchronized (this.zzb) {
|
|
try {
|
|
if (this.zzc == null) {
|
|
return;
|
|
}
|
|
this.zza.execute(new zzg(this));
|
|
} catch (Throwable th) {
|
|
throw th;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|