package com.bytedance.sdk.component.adexpress.ajl;

import android.content.Context;
import android.text.TextUtils;
import android.widget.RelativeLayout;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes.dex */
public class ajl extends sds {
    private gqi fm;

    public ajl(Context context, int i10, int i11, int i12, JSONObject jSONObject) {
        super(context);
        fm(context, i10, i11, i12, jSONObject);
    }

    private void fm(Context context, int i10, int i11, int i12, JSONObject jSONObject) {
        gqi gqiVar = new gqi(context, com.bytedance.sdk.component.adexpress.lb.fm.lb(context), i10, i11, i12, jSONObject);
        this.fm = gqiVar;
        addView(gqiVar);
        RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(-2, -2);
        layoutParams.addRule(14);
        layoutParams.addRule(12);
        this.fm.setLayoutParams(layoutParams);
    }

    public gqi getShakeView() {
        return this.fm;
    }

    public void setShakeText(String str) {
        if (this.fm == null) {
            return;
        }
        if (TextUtils.isEmpty(str)) {
            this.fm.setShakeText("");
        } else {
            this.fm.setShakeText(str);
        }
    }
}
