41 lines
1.6 KiB
Java
41 lines
1.6 KiB
Java
package com.google.android.gms.security;
|
|
|
|
import android.content.Context;
|
|
import android.os.AsyncTask;
|
|
import com.google.android.gms.common.GooglePlayServicesNotAvailableException;
|
|
import com.google.android.gms.common.GooglePlayServicesRepairableException;
|
|
import com.google.android.gms.security.ProviderInstaller;
|
|
|
|
/* JADX INFO: compiled from: com.google.android.gms:play-services-basement@@18.3.0 */
|
|
/* JADX INFO: loaded from: classes2.dex */
|
|
final class zza extends AsyncTask {
|
|
final /* synthetic */ Context zza;
|
|
final /* synthetic */ ProviderInstaller.ProviderInstallListener zzb;
|
|
|
|
zza(Context context, ProviderInstaller.ProviderInstallListener providerInstallListener) {
|
|
this.zza = context;
|
|
this.zzb = providerInstallListener;
|
|
}
|
|
|
|
@Override // android.os.AsyncTask
|
|
protected final /* bridge */ /* synthetic */ Object doInBackground(Object[] objArr) {
|
|
try {
|
|
ProviderInstaller.installIfNeeded(this.zza);
|
|
return 0;
|
|
} catch (GooglePlayServicesNotAvailableException e) {
|
|
return Integer.valueOf(e.errorCode);
|
|
} catch (GooglePlayServicesRepairableException e2) {
|
|
return Integer.valueOf(e2.getConnectionStatusCode());
|
|
}
|
|
}
|
|
|
|
@Override // android.os.AsyncTask
|
|
protected final /* bridge */ /* synthetic */ void onPostExecute(Object obj) {
|
|
Integer num = (Integer) obj;
|
|
if (num.intValue() == 0) {
|
|
this.zzb.onProviderInstalled();
|
|
return;
|
|
}
|
|
this.zzb.onProviderInstallFailed(num.intValue(), ProviderInstaller.zza.getErrorResolutionIntent(this.zza, num.intValue(), "pi"));
|
|
}
|
|
} |