27 lines
1.0 KiB
Java
27 lines
1.0 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.tasks.TaskCompletionSource;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class zzba implements BaseImplementation.ResultHolder {
|
||
|
private final TaskCompletionSource zza;
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.internal.BaseImplementation.ResultHolder
|
||
|
public final void setFailedResult(Status status) {
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
public zzba(TaskCompletionSource taskCompletionSource) {
|
||
|
this.zza = taskCompletionSource;
|
||
|
}
|
||
|
}
|