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

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

public final class SetScrollTopMethod extends BaseBridgeMethod implements 6Is {
    public final String LIZIZ = "setScrollTop";

    static {
        Covode.recordClassIndex(55060);
    }

    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 SetScrollTopMethod(KT7 kt7) {
        super(kt7);
        M12.LIZ((Object) kt7);
    }

    public final void LIZ(JSONObject jSONObject, 4UQ r4) {
        M12.LIZ((Object) jSONObject, (Object) r4);
        int optInt = jSONObject.optInt("top", 2);
        if (optInt == 0) {
            C2708Kx9.LJIIIIZZ = false;
        } else if (optInt == 1) {
            C2708Kx9.LJIIIIZZ = true;
        }
        r4.LIZ(1);
    }
}
