37 lines
985 B
Java
37 lines
985 B
Java
package com.google.android.gms.tasks;
|
|
|
|
import java.util.concurrent.Executor;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zzl implements zzq {
|
|
private final Executor zza;
|
|
private final Object zzb = new Object();
|
|
private OnFailureListener 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.isSuccessful() || task.isCanceled()) {
|
|
return;
|
|
}
|
|
synchronized (this.zzb) {
|
|
if (this.zzc == null) {
|
|
return;
|
|
}
|
|
this.zza.execute(new zzk(this, task));
|
|
}
|
|
}
|
|
|
|
public zzl(Executor executor, OnFailureListener onFailureListener) {
|
|
this.zza = executor;
|
|
this.zzc = onFailureListener;
|
|
}
|
|
}
|