34 lines
1.3 KiB
Java
34 lines
1.3 KiB
Java
package com.google.android.gms.common.internal;
|
|
|
|
import com.google.android.gms.common.api.PendingResult;
|
|
import com.google.android.gms.common.api.Status;
|
|
import com.google.android.gms.common.internal.PendingResultUtil;
|
|
import com.google.android.gms.tasks.TaskCompletionSource;
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zap implements PendingResult.StatusListener {
|
|
final PendingResult zaa;
|
|
final TaskCompletionSource zab;
|
|
final PendingResultUtil.ResultConverter zac;
|
|
final zas zad;
|
|
|
|
@Override // com.google.android.gms.common.api.PendingResult.StatusListener
|
|
public final void onComplete(Status status) {
|
|
if (status.isSuccess()) {
|
|
this.zab.setResult(this.zac.convert(this.zaa.await(0L, TimeUnit.MILLISECONDS)));
|
|
} else {
|
|
this.zab.setException(ApiExceptionUtil.fromStatus(status));
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public zap(PendingResult pendingResult, TaskCompletionSource taskCompletionSource, PendingResultUtil.ResultConverter resultConverter, zas zasVar) {
|
|
this.zaa = pendingResult;
|
|
this.zab = taskCompletionSource;
|
|
this.zac = resultConverter;
|
|
this.zad = zasVar;
|
|
}
|
|
}
|