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

import X.0CB;
import X.0CH;
import X.4UQ;
import X.6Is;
import X.8AR;
import X.KGE;
import X.KT7;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.ad.preload.AdLandPagePreloadServiceImpl;
import com.ss.android.ugc.aweme.ad.preload.IAdLandPagePreloadService;
import com.ss.android.ugc.aweme.bullet.bridge.BaseBridgeMethod;
import java.util.ArrayList;
import kotlin.h.b.n;
import org.json.JSONArray;
import org.json.JSONObject;

public final class LoadGeckoResourcesMethod extends BaseBridgeMethod implements 6Is {
    public static final KGE LIZIZ = new KGE((byte) 0);
    public final String LIZJ = "loadGeckoResources";

    static {
        Covode.recordClassIndex(54930);
    }

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

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

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

    public final void LIZ(JSONObject jSONObject, 4UQ r8) {
        8AR LIZ;
        M12.LIZ((Object) jSONObject, (Object) r8);
        if (jSONObject.has("channels")) {
            JSONArray optJSONArray = jSONObject.optJSONArray("channels");
            ArrayList arrayList = new ArrayList();
            int length = optJSONArray.length();
            for (int i = 0; i < length; i++) {
                String optString = optJSONArray.optString(i);
                n.LIZIZ(optString, "");
                arrayList.add(optString);
            }
            IAdLandPagePreloadService LJFF = AdLandPagePreloadServiceImpl.LJFF();
            if (LJFF != null && (LIZ = LJFF.LIZ()) != null) {
                LIZ.LIZJ(arrayList);
            }
        }
    }
}
