43 lines
1.3 KiB
Java
43 lines
1.3 KiB
Java
package c.i.a.f.n;
|
|
|
|
import com.google.android.gms.tasks.RuntimeExecutionException;
|
|
import com.google.android.gms.tasks.Task;
|
|
import java.util.concurrent.CancellationException;
|
|
import java.util.concurrent.Executor;
|
|
/* compiled from: com.google.android.gms:play-services-tasks@@17.2.0 */
|
|
public final class w implements Runnable {
|
|
public final /* synthetic */ Task i;
|
|
public final /* synthetic */ x j;
|
|
|
|
public w(x xVar, Task task) {
|
|
this.j = xVar;
|
|
this.i = task;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
try {
|
|
Task a = this.j.b.a(this.i.l());
|
|
if (a == null) {
|
|
x xVar = this.j;
|
|
xVar.f1228c.s(new NullPointerException("Continuation returned null"));
|
|
return;
|
|
}
|
|
Executor executor = g.b;
|
|
a.g(executor, this.j);
|
|
a.e(executor, this.j);
|
|
a.a(executor, this.j);
|
|
} catch (RuntimeExecutionException e) {
|
|
if (e.getCause() instanceof Exception) {
|
|
this.j.f1228c.s((Exception) e.getCause());
|
|
return;
|
|
}
|
|
this.j.f1228c.s(e);
|
|
} catch (CancellationException unused) {
|
|
this.j.f1228c.u();
|
|
} catch (Exception e2) {
|
|
this.j.f1228c.s(e2);
|
|
}
|
|
}
|
|
}
|