package com.ss.android.ugc.aweme.bullet.bridge.ad;

import X.0CB;
import X.0CH;
import X.4UQ;
import X.6Is;
import X.C0984KOx;
import X.C2277KqC;
import X.KT7;
import X.M12;
import android.os.Bundle;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.bullet.bridge.BaseBridgeMethod;
import org.json.JSONObject;

public final class GetNativeSiteCustomDataMethod extends BaseBridgeMethod implements 6Is {
    public final String LIZIZ = "getNativeSiteCustomData";

    static {
        Covode.recordClassIndex(54925);
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        super.onStateChanged(r1, r2);
    }

    public final String LIZLLL() {
        return this.LIZIZ;
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public GetNativeSiteCustomDataMethod(KT7 kt7) {
        super(kt7);
        M12.LIZ((Object) kt7);
    }

    public final void LIZ(JSONObject jSONObject, 4UQ r6) {
        C2277KqC kqC;
        M12.LIZ((Object) jSONObject, (Object) r6);
        JSONObject jSONObject2 = new JSONObject();
        C0984KOx LJI = LJI();
        if (LJI != null) {
            kqC = (C2277KqC) LJI.LIZ(C2277KqC.class);
        } else {
            kqC = null;
        }
        if (kqC != null) {
            String LIZIZ2 = kqC.LJJLIIIIJ.LIZIZ();
            if (LIZIZ2 == null) {
                LIZIZ2 = "";
            }
            jSONObject2.put("customData", LIZIZ2);
        } else if (this.LIZ.LIZJ(Bundle.class) != null) {
            Bundle bundle = (Bundle) this.LIZ.LIZJ(Bundle.class);
            if (bundle != null) {
                jSONObject2.put("customData", bundle.getString("bundle_native_site_custom_data"));
            } else {
                return;
            }
        }
        r6.LIZ(jSONObject2);
    }
}
