package com.bytedance.android.livesdk.broadcast.preview.widget;

import X.0CB;
import X.0CH;
import X.0aP;
import X.6Is;
import X.C1376G0j;
import X.C1392G0z;
import X.C1430G2l;
import X.C2409Gbi;
import android.view.View;
import com.bytedance.android.livesdk.livesetting.broadcast.GameBroadcastTipsBan;
import com.bytedance.android.livesdk.livesetting.broadcast.LiveBroadcastPreviewSetting;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.sdk.datachannel.DataChannel;
import com.bytedance.ies.sdk.widgets.LiveWidget;

public final class ObsBroadcastGuideWidget extends LiveWidget implements 6Is {
    static {
        Covode.recordClassIndex(12243);
    }

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

    public final void hide() {
        super.hide();
        if (C2409Gbi.LJFF) {
            0aP.LIZ(4, "ObsBroadcastGuideWidget", "hide");
        }
    }

    public final void show() {
        super.show();
        if (C2409Gbi.LJFF) {
            0aP.LIZ(4, "ObsBroadcastGuideWidget", "show");
        }
    }

    public final int getLayoutId() {
        if (LiveBroadcastPreviewSetting.INSTANCE.enableV1Style() || LiveBroadcastPreviewSetting.INSTANCE.enableV2Style()) {
            return 2131562208;
        }
        return 2131562207;
    }

    public final void onCreate() {
        View findViewById;
        super.onCreate();
        DataChannel dataChannel = this.dataChannel;
        if (dataChannel != null) {
            dataChannel.LIZIZ((0CH) this, C1376G0j.class, new C1392G0z(this));
        }
        if (GameBroadcastTipsBan.INSTANCE.isBan() && (findViewById = findViewById(2131367159)) != null) {
            C1430G2l.LIZ(findViewById);
        }
    }
}
