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

import X.0CB;
import X.0CH;
import X.6Is;
import X.C1376G0j;
import X.C1459G3o;
import X.C1460G3p;
import X.C1462G3r;
import X.C1463G3s;
import X.C1464G3t;
import X.C2432Gc5;
import X.C2442GcF;
import X.C2443GcG;
import X.G40;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.sdk.datachannel.DataChannel;
import com.bytedance.ies.sdk.widgets.LiveWidget;

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

    public final int getLayoutId() {
        return 2131562213;
    }

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

    public final void onCreate() {
        super.onCreate();
        DataChannel dataChannel = this.dataChannel;
        if (dataChannel != null) {
            dataChannel.LIZIZ((0CH) this, C2443GcG.class, new C1460G3p(this));
            dataChannel.LIZIZ((0CH) this, C2442GcF.class, new C1463G3s(this));
            dataChannel.LIZ((0CH) this, C2432Gc5.class, new C1464G3t(this));
            dataChannel.LIZIZ((0CH) this, C1376G0j.class, new C1462G3r(this));
        }
    }

    public final View LIZ(G40 g40) {
        View view = getView();
        if (!(view instanceof ViewGroup)) {
            view = null;
        }
        ViewGroup viewGroup = (ViewGroup) view;
        if (viewGroup != null) {
            int childCount = viewGroup.getChildCount();
            for (int i = 0; i < childCount; i++) {
                View childAt = viewGroup.getChildAt(i);
                if ((childAt instanceof C1459G3o) && ((C1459G3o) childAt).getTag() == g40) {
                    return childAt;
                }
            }
        }
        return null;
    }
}
