package com.ss.android.ugc.aweme.ecommerce.jsb;

import X.0CB;
import X.0CH;
import X.6Is;
import X.C4970Hbv;
import X.C4971Hbw;
import X.FIu;
import X.KKi;
import android.content.Context;
import android.webkit.WebView;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.fe.base.BaseCommonJavaMethod;
import org.json.JSONObject;

public final class PrefetchSchemaJavaMethod extends BaseCommonJavaMethod implements 6Is {
    public final KKi LIZ;

    static {
        Covode.recordClassIndex(70139);
    }

    public PrefetchSchemaJavaMethod(byte b) {
        this();
    }

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

    public /* synthetic */ PrefetchSchemaJavaMethod() {
        this((KKi) null);
    }

    public PrefetchSchemaJavaMethod(KKi kKi) {
        super(kKi);
        this.LIZ = kKi;
    }

    public final void handle(JSONObject jSONObject, FIu fIu) {
        Context context;
        WebView webView;
        if (fIu != null) {
            C4970Hbv hbv = C4971Hbw.LIZ;
            KKi kKi = this.LIZ;
            if (kKi == null || (webView = kKi.LIZLLL) == null) {
                context = null;
            } else {
                context = webView.getContext();
            }
            fIu.LIZ(hbv.LIZ(jSONObject, context));
        }
    }
}
