package com.ss.android.ugc.aweme.fe.method;

import X.0CB;
import X.0CH;
import X.6Is;
import X.AnonymousClass3BB;
import X.FIu;
import android.content.Context;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.fe.base.BaseCommonJavaMethod;
import kotlin.h.b.n;
import org.json.JSONObject;

public final class ShowDmtToastMethod extends BaseCommonJavaMethod implements 6Is {
    static {
        Covode.recordClassIndex(76181);
    }

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

    public final void handle(JSONObject jSONObject, FIu fIu) {
        if (jSONObject != null) {
            String optString = jSONObject.optString("msg");
            n.LIZIZ(optString, "");
            Context actContext = getActContext();
            if (actContext != null) {
                AnonymousClass3BB r0 = new AnonymousClass3BB(actContext);
                r0.LIZ((CharSequence) optString);
                r0.LIZIZ();
            }
        } else if (fIu != null) {
            fIu.LIZ(0, "no params found");
        }
    }
}
