52 lines
2.0 KiB
Java
52 lines
2.0 KiB
Java
package c.i.a.f.e.k;
|
|
|
|
import c.i.a.f.e.h.d;
|
|
import c.i.a.f.e.h.h;
|
|
import c.i.a.f.e.k.l;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.google.android.gms.common.api.Status;
|
|
import com.google.android.gms.common.api.internal.BasePendingResult;
|
|
import com.google.android.gms.tasks.TaskCompletionSource;
|
|
import java.util.Objects;
|
|
import java.util.concurrent.TimeUnit;
|
|
/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */
|
|
public final class t implements d.a {
|
|
public final /* synthetic */ d a;
|
|
public final /* synthetic */ TaskCompletionSource b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public final /* synthetic */ l.a f1059c;
|
|
|
|
public t(d dVar, TaskCompletionSource taskCompletionSource, l.a aVar, l.b bVar) {
|
|
this.a = dVar;
|
|
this.b = taskCompletionSource;
|
|
this.f1059c = aVar;
|
|
}
|
|
|
|
@Override // c.i.a.f.e.h.d.a
|
|
public final void a(Status status) {
|
|
if (status.v0()) {
|
|
d dVar = this.a;
|
|
TimeUnit timeUnit = TimeUnit.MILLISECONDS;
|
|
BasePendingResult basePendingResult = (BasePendingResult) dVar;
|
|
Objects.requireNonNull(basePendingResult);
|
|
AnimatableValueParser.G(!basePendingResult.i, "Result has already been consumed.");
|
|
AnimatableValueParser.G(true, "Cannot await if then() has been called.");
|
|
try {
|
|
if (!basePendingResult.d.await(0, timeUnit)) {
|
|
basePendingResult.e(Status.l);
|
|
}
|
|
} catch (InterruptedException unused) {
|
|
basePendingResult.e(Status.j);
|
|
}
|
|
AnimatableValueParser.G(basePendingResult.f(), "Result is not ready.");
|
|
h j = basePendingResult.j();
|
|
TaskCompletionSource taskCompletionSource = this.b;
|
|
taskCompletionSource.a.t(this.f1059c.a(j));
|
|
return;
|
|
}
|
|
TaskCompletionSource taskCompletionSource2 = this.b;
|
|
taskCompletionSource2.a.s(AnimatableValueParser.n0(status));
|
|
}
|
|
}
|