package com.google.android.gms.location; import android.app.Activity; import android.content.Context; import com.google.android.gms.common.api.Api; import com.google.android.gms.common.api.GoogleApi; import com.google.android.gms.common.api.internal.RemoteCall; import com.google.android.gms.common.api.internal.TaskApiCall; import com.google.android.gms.tasks.Task; import com.google.android.gms.tasks.TaskCompletionSource; /* loaded from: classes2.dex */ public class SettingsClient extends GoogleApi { public static final int zza = 0; public SettingsClient(Activity activity) { super(activity, LocationServices.API, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS); } public Task checkLocationSettings(final LocationSettingsRequest locationSettingsRequest) { return doRead(TaskApiCall.builder().run(new RemoteCall(locationSettingsRequest) { // from class: com.google.android.gms.location.zzbz public final LocationSettingsRequest zza; @Override // com.google.android.gms.common.api.internal.RemoteCall public final void accept(Object obj, Object obj2) { LocationSettingsRequest locationSettingsRequest2 = this.zza; int i = SettingsClient.zza; ((com.google.android.gms.internal.location.zzbe) obj).zzr(locationSettingsRequest2, new zzca((TaskCompletionSource) obj2), null); } { this.zza = locationSettingsRequest; } }).setMethodKey(2426).build()); } public SettingsClient(Context context) { super(context, LocationServices.API, Api.ApiOptions.NO_OPTIONS, GoogleApi.Settings.DEFAULT_SETTINGS); } }