package com.bytedance.sdk.component.adexpress.dynamic.lb;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import com.bytedance.sdk.component.adexpress.ajl.wey;

/* JADX INFO: loaded from: classes.dex */
public class irt implements wsy {
    private wey fm;

    /* JADX INFO: renamed from: lb, reason: collision with root package name */
    private com.bytedance.sdk.component.adexpress.dynamic.dynamicview.jnr f6502lb;
    private Context ro;
    private com.bytedance.sdk.component.adexpress.dynamic.yz.wsy yz;

    public irt(Context context, com.bytedance.sdk.component.adexpress.dynamic.dynamicview.jnr jnrVar, com.bytedance.sdk.component.adexpress.dynamic.yz.wsy wsyVar) {
        this.ro = context;
        this.f6502lb = jnrVar;
        this.yz = wsyVar;
        yz();
    }

    private void yz() {
        this.fm = new wey(this.ro);
        FrameLayout.LayoutParams layoutParams = new FrameLayout.LayoutParams(-2, (int) com.bytedance.sdk.component.adexpress.yz.wsy.fm(this.ro, 120.0f));
        layoutParams.gravity = 17;
        this.fm.setLayoutParams(layoutParams);
        this.fm.setClipChildren(false);
        this.fm.setGuideText(this.yz.lmk());
        com.bytedance.sdk.component.adexpress.dynamic.dynamicview.jnr jnrVar = this.f6502lb;
        if (jnrVar != null) {
            this.fm.setOnClickListener((View.OnClickListener) jnrVar.getDynamicClickListener());
        }
    }

    @Override // com.bytedance.sdk.component.adexpress.dynamic.lb.wsy
    public void fm() {
        wey weyVar = this.fm;
        if (weyVar != null) {
            weyVar.fm();
        }
    }

    @Override // com.bytedance.sdk.component.adexpress.dynamic.lb.wsy
    public ViewGroup lb() {
        return this.fm;
    }

    @Override // com.bytedance.sdk.component.adexpress.dynamic.lb.wsy
    public void ro() {
        wey weyVar = this.fm;
        if (weyVar != null) {
            weyVar.ro();
        }
    }
}
