32 lines
1.2 KiB
Java
32 lines
1.2 KiB
Java
package com.google.android.gms.location;
|
|
|
|
import com.google.android.gms.common.api.ApiException;
|
|
import com.google.android.gms.common.api.Status;
|
|
import com.google.android.gms.common.api.internal.BaseImplementation;
|
|
import com.google.android.gms.common.api.internal.TaskUtil;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.tasks.TaskCompletionSource;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final class zzj implements BaseImplementation.ResultHolder {
|
|
private final TaskCompletionSource zza;
|
|
|
|
public zzj(TaskCompletionSource taskCompletionSource) {
|
|
Preconditions.checkNotNull(taskCompletionSource);
|
|
this.zza = taskCompletionSource;
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ResultHolder
|
|
public final void setFailedResult(Status status) {
|
|
if (status == null) {
|
|
return;
|
|
}
|
|
this.zza.setException(new ApiException(status));
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ResultHolder
|
|
public final /* synthetic */ void setResult(Object obj) {
|
|
TaskUtil.setResultOrApiException((Status) obj, null, this.zza);
|
|
}
|
|
}
|