what-the-bank/sources/com/google/android/gms/location/zzar.java

33 lines
1.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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.internal.ApiExceptionUtil;
import com.google.android.gms.tasks.TaskCompletionSource;
/* loaded from: classes2.dex */
final class zzar extends com.google.android.gms.internal.location.zzah {
final TaskCompletionSource zza;
/* JADX INFO: Access modifiers changed from: package-private */
public zzar(FusedLocationProviderClient fusedLocationProviderClient, TaskCompletionSource taskCompletionSource) {
this.zza = taskCompletionSource;
}
@Override // com.google.android.gms.internal.location.zzai
public final void zzb(com.google.android.gms.internal.location.zzaa zzaaVar) {
Status status = zzaaVar.getStatus();
if (status == null) {
this.zza.trySetException(new ApiException(new Status(8, "Got null status from location service")));
} else if (status.getStatusCode() == 0) {
this.zza.setResult(true);
} else {
this.zza.trySetException(ApiExceptionUtil.fromStatus(status));
}
}
@Override // com.google.android.gms.internal.location.zzai
public final void zzc() {
}
}