package com.google.android.gms.auth.account; import android.accounts.Account; 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.internal.PendingResultUtil; import com.google.android.gms.internal.auth.zzh; import com.google.android.gms.tasks.Task; /* loaded from: classes.dex */ public class WorkAccountClient extends GoogleApi { private final WorkAccountApi zzac; /* JADX INFO: Access modifiers changed from: package-private */ public WorkAccountClient(Context context) { super(context, WorkAccount.API, (Api.ApiOptions) null, GoogleApi.Settings.DEFAULT_SETTINGS); this.zzac = new zzh(); } /* JADX INFO: Access modifiers changed from: package-private */ public WorkAccountClient(Activity activity) { super(activity, (Api) WorkAccount.API, (Api.ApiOptions) null, GoogleApi.Settings.DEFAULT_SETTINGS); this.zzac = new zzh(); } public Task setWorkAuthenticatorEnabled(boolean z) { return PendingResultUtil.toVoidTask(this.zzac.setWorkAuthenticatorEnabledWithResult(asGoogleApiClient(), z)); } public Task addWorkAccount(String str) { return PendingResultUtil.toTask(this.zzac.addWorkAccount(asGoogleApiClient(), str), new zzg(this)); } public Task removeWorkAccount(Account account) { return PendingResultUtil.toVoidTask(this.zzac.removeWorkAccount(asGoogleApiClient(), account)); } }