package com.ss.android.ugc.aweme.discover.ui.search.jsbridge.bullet;

import X.0Bs;
import X.0Bv;
import X.0Bx;
import X.0By;
import X.0CB;
import X.0CH;
import X.0HH;
import X.1hK;
import X.2GD;
import X.4UQ;
import X.6Is;
import X.7hA;
import X.KT7;
import X.M12;
import X.SfZ;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.bullet.bridge.BaseBridgeMethod;
import com.ss.android.ugc.aweme.discover.model.KeyboardModel;
import kotlin.h.b.n;
import org.json.JSONObject;

public final class KeyboardChangeMethod extends BaseBridgeMethod implements 6Is {
    public final String LIZIZ = "KeyboardChange";

    static {
        Covode.recordClassIndex(65917);
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        KeyboardChangeMethod.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 KeyboardChangeMethod(KT7 kt7) {
        super(kt7);
        M12.LIZ(kt7);
    }

    public final void LIZ(JSONObject jSONObject, 4UQ r6) {
        M12.LIZ(jSONObject, r6);
        try {
            int optInt = jSONObject.optInt("pop_up");
            1hK LJIIIZ = SfZ.LJIJ.LJIIIZ();
            if (LJIIIZ != null && (LJIIIZ instanceof 1hK)) {
                1hK r2 = LJIIIZ;
                0Bx LIZ = 0By.LIZ(r2, (0Bv) null);
                if (2GD.LIZ) {
                    0Bs.LIZ(LIZ, r2);
                }
                KeyboardModel LIZ2 = LIZ.LIZ(KeyboardModel.class);
                n.LIZIZ(LIZ2, "");
                LIZ2.getKeyboardStatus().setValue(Integer.valueOf(optInt));
            }
            r6.LIZ(new JSONObject());
        } catch (Exception e) {
            7hA.LIZ.LIZ(e, "KeyboardChange");
            r6.LIZ(0, e.getMessage());
            0HH.LIZ(e);
        }
    }
}
