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

import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import org.json.JSONObject;

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

    public gqi(@NonNull Context context, View view, int i10, int i11, int i12, JSONObject jSONObject) {
        super(context, view, i10, i11, i12, jSONObject);
    }

    @Override // com.bytedance.sdk.component.adexpress.ajl.gof
    public void fm(Context context, View view) {
        addView(view);
        this.fm = (TextView) findViewById(2097610747);
    }

    @Override // com.bytedance.sdk.component.adexpress.ajl.gof
    public void setShakeText(String str) {
        if (this.fm == null) {
            return;
        }
        if (!TextUtils.isEmpty(str)) {
            this.fm.setText(str);
            return;
        }
        try {
            this.fm.setText(com.bytedance.sdk.component.utils.maa.ro(this.fm.getContext(), "tt_splash_default_click_shake"));
        } catch (Exception e10) {
            e10.getMessage();
        }
    }
}
