package xyz.netfly.ads;

import android.app.Activity;
import android.widget.FrameLayout;
import androidx.emoji2.text.v;
import com.bytedance.sdk.openadsdk.api.nativeAd.PAGNativeAd;
import com.bytedance.sdk.openadsdk.api.nativeAd.PAGNativeAdLoadListener;
import ed.u;

/* JADX INFO: loaded from: classes3.dex */
public final class q implements PAGNativeAdLoadListener {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ Activity f34881a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ FrameLayout f34882b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ u f34883c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ r f34884d;

    public q(r rVar, Activity activity, FrameLayout frameLayout, u uVar) {
        this.f34884d = rVar;
        this.f34881a = activity;
        this.f34882b = frameLayout;
        this.f34883c = uVar;
    }

    @Override // com.bytedance.sdk.openadsdk.api.PAGLoadListener
    public final void onAdLoaded(PAGNativeAd pAGNativeAd) {
        PAGNativeAd pAGNativeAd2 = pAGNativeAd;
        this.f34884d.getClass();
        r.h("native_ad", null, "Loaded", null);
        Activity activity = this.f34881a;
        activity.runOnUiThread(new p(this, activity, this.f34882b, pAGNativeAd2, this.f34883c, 0));
    }

    @Override // com.bytedance.sdk.openadsdk.api.PAGLoadListener, com.bytedance.sdk.openadsdk.common.wsy
    public final void onError(int i10, String str) {
        Integer numValueOf = Integer.valueOf(i10);
        this.f34884d.getClass();
        r.h("native_ad", numValueOf, "Error", str);
        this.f34881a.runOnUiThread(new v(this, this.f34882b, this.f34883c, 12));
    }
}
