package com.igaworks.ssp.common.o; import android.graphics.Typeface; import android.text.Html; import android.text.TextUtils; import android.widget.TextView; /* loaded from: classes2.dex */ public class k { public static void a(TextView textView, String str, int i10, int i11, Typeface typeface, int i12, int i13, TextUtils.TruncateAt truncateAt, boolean z10) { if (str != null) { textView.setText(Html.fromHtml(str.replaceAll("\n", "
"))); } textView.setTextSize(1, i10); textView.setTextColor(i11); if (typeface == null) { textView.setTypeface(Typeface.DEFAULT, i12); } else { textView.setTypeface(typeface, i12); } if (i13 == 1) { textView.setSingleLine(true); } else if (i13 > 1) { textView.setMaxLines(i13); } textView.setEllipsize(truncateAt); if (z10) { textView.setPaintFlags(textView.getPaintFlags() | 32); } textView.setIncludeFontPadding(false); } public static boolean b(String str) { return !a(str); } public static boolean a(String str) { if (str == null) { return false; } try { if (str.length() <= 0) { return false; } return !str.equals("null"); } catch (Exception unused) { return false; } } }