package com.scb.phone.view.custom; import android.content.Context; import android.graphics.Typeface; import android.text.SpannableString; import android.text.TextUtils; import android.util.AttributeSet; import com.google.android.material.textfield.TextInputLayout; import io.github.inflationx.calligraphy3.CalligraphyTypefaceSpan; /* loaded from: classes5.dex */ public class ScbTextInputLayout extends TextInputLayout { private Context t; public ScbTextInputLayout(Context context) { this(context, null, 0); } public ScbTextInputLayout(Context context, AttributeSet attributeSet) { this(context, attributeSet, 0); } public ScbTextInputLayout(Context context, AttributeSet attributeSet, int i) { super(context, attributeSet, i); this.t = context; } @Override // com.google.android.material.textfield.TextInputLayout public void setError(CharSequence charSequence) { SpannableString spannableString; if (TextUtils.isEmpty(charSequence)) { spannableString = null; } else { CalligraphyTypefaceSpan calligraphyTypefaceSpan = new CalligraphyTypefaceSpan(Typeface.createFromAsset(this.t.getAssets(), "fonts/db_heavent_regular.ttf")); spannableString = new SpannableString(charSequence); spannableString.setSpan(calligraphyTypefaceSpan, 0, charSequence.length(), 33); } super.setError(spannableString); } }