package com.fyber.inneractive.sdk.flow; import com.fyber.inneractive.sdk.config.IAConfigManager; import com.fyber.inneractive.sdk.external.InneractiveAdRequest; import com.fyber.inneractive.sdk.external.InneractiveErrorCode; import com.fyber.inneractive.sdk.external.InneractiveInfrastructureError; /* loaded from: classes2.dex */ public final class i implements IAConfigManager.OnConfigurationReadyAndValidListener { public final /* synthetic */ InneractiveAdRequest a; public final /* synthetic */ j b; public i(j jVar, InneractiveAdRequest inneractiveAdRequest) { this.b = jVar; this.a = inneractiveAdRequest; } @Override // com.fyber.inneractive.sdk.config.IAConfigManager.OnConfigurationReadyAndValidListener public final void onConfigurationReadyAndValid(IAConfigManager iAConfigManager, boolean z, Exception exc) { IAConfigManager.removeListener(this); if (z) { this.b.c(this.a); return; } InneractiveInfrastructureError inneractiveInfrastructureError = new InneractiveInfrastructureError(exc instanceof com.fyber.inneractive.sdk.network.b ? InneractiveErrorCode.CONNECTION_ERROR : InneractiveErrorCode.SDK_NOT_INITIALIZED_OR_CONFIG_ERROR, g.NO_APP_CONFIG_AVAILABLE, exc); j jVar = this.b; jVar.a(this.a, inneractiveInfrastructureError, jVar.c()); } }