43 lines
1.3 KiB
Java
43 lines
1.3 KiB
Java
package com.google.android.gms.tasks;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class zzf implements Runnable {
|
|
private final /* synthetic */ Task a;
|
|
private final /* synthetic */ zze b;
|
|
|
|
zzf(zze zzeVar, Task task) {
|
|
this.b = zzeVar;
|
|
this.a = task;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
zzu zzuVar;
|
|
zzu zzuVar2;
|
|
zzu zzuVar3;
|
|
Continuation continuation;
|
|
try {
|
|
continuation = this.b.b;
|
|
Task task = (Task) continuation.a(this.a);
|
|
if (task == null) {
|
|
this.b.a(new NullPointerException("Continuation returned null"));
|
|
return;
|
|
}
|
|
task.a(TaskExecutors.a, (OnSuccessListener) this.b);
|
|
task.a(TaskExecutors.a, (OnFailureListener) this.b);
|
|
task.a(TaskExecutors.a, (OnCanceledListener) this.b);
|
|
} catch (RuntimeExecutionException e) {
|
|
if (e.getCause() instanceof Exception) {
|
|
zzuVar3 = this.b.c;
|
|
zzuVar3.a((Exception) e.getCause());
|
|
} else {
|
|
zzuVar2 = this.b.c;
|
|
zzuVar2.a((Exception) e);
|
|
}
|
|
} catch (Exception e2) {
|
|
zzuVar = this.b.c;
|
|
zzuVar.a(e2);
|
|
}
|
|
}
|
|
}
|