package xyz.netfly.ads;

import android.app.Activity;
import com.bytedance.sdk.openadsdk.api.open.PAGAppOpenAd;
import com.bytedance.sdk.openadsdk.api.open.PAGAppOpenAdLoadListener;
import xyz.stream.utils.f0;

/* JADX INFO: loaded from: classes3.dex */
public final class m implements PAGAppOpenAdLoadListener {

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

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

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

    public m(r rVar, g gVar, Activity activity) {
        this.f34868c = rVar;
        this.f34866a = gVar;
        this.f34867b = activity;
    }

    @Override // com.bytedance.sdk.openadsdk.api.PAGLoadListener
    public final void onAdLoaded(PAGAppOpenAd pAGAppOpenAd) {
        PAGAppOpenAd pAGAppOpenAd2 = pAGAppOpenAd;
        r rVar = this.f34868c;
        rVar.getClass();
        r.h("open_ad", null, "Loaded", null);
        if (pAGAppOpenAd2 == null) {
            return;
        }
        rVar.f34888c = pAGAppOpenAd2;
        pAGAppOpenAd2.setAdInteractionListener(new f0(this, 24));
        rVar.f34888c.show(this.f34867b);
    }

    @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);
        r rVar = this.f34868c;
        rVar.getClass();
        r.h("open_ad", numValueOf, "Error", str);
        rVar.c(this.f34866a);
    }
}
