35 lines
893 B
Java
35 lines
893 B
Java
package com.google.android.gms.tasks;
|
|
|
|
import java.util.concurrent.Executor;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class zzh implements zzq {
|
|
private final Executor zza;
|
|
private final Object zzb = new Object();
|
|
private OnCanceledListener zzc;
|
|
|
|
@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(Task task) {
|
|
if (task.isCanceled()) {
|
|
synchronized (this.zzb) {
|
|
if (this.zzc == null) {
|
|
return;
|
|
}
|
|
this.zza.execute(new zzg(this));
|
|
}
|
|
}
|
|
}
|
|
|
|
public zzh(Executor executor, OnCanceledListener onCanceledListener) {
|
|
this.zza = executor;
|
|
this.zzc = onCanceledListener;
|
|
}
|
|
}
|