package com.google.android.material.textfield; import android.R; import android.animation.Animator; import android.animation.ValueAnimator; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.PorterDuff; import android.graphics.Rect; import android.graphics.RectF; import android.graphics.Typeface; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.LayerDrawable; import android.graphics.drawable.RippleDrawable; import android.graphics.drawable.StateListDrawable; import android.os.Build; import android.os.Parcel; import android.os.Parcelable; import android.text.Editable; import android.text.SpannableString; import android.text.Spanned; import android.text.SpannedString; import android.text.TextPaint; import android.text.TextUtils; import android.text.TextWatcher; import android.util.AttributeSet; import android.util.Base64; import android.util.SparseArray; import android.util.TypedValue; import android.view.View; import android.view.ViewGroup; import android.view.ViewStructure; import android.view.accessibility.AccessibilityEvent; import android.view.accessibility.AccessibilityNodeInfo; import android.widget.AutoCompleteTextView; import android.widget.EditText; import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; import androidx.appcompat.widget.AppCompatTextView; import androidx.core.view.ViewCompat; import androidx.core.view.accessibility.AccessibilityNodeInfoCompat; import com.airbnb.deeplinkdispatch.UrlTreeKt; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.android.material.internal.CheckableImageButton; import java.nio.charset.StandardCharsets; import java.util.Iterator; import java.util.LinkedHashSet; import o.AgY; import o.C15977kAW; import o.C16021kYS; import o.C16844rlF; import o.C17052tZT; import o.C17525xWe; import o.C4363bXv; import o.C6217cMa; import o.CEQ; import o.CYM; import o.DAZ; import o.FIj; import o.FLD; import o.RXZ; import o.Rez; import o.SZt; import o.Spl; import o.TZc; import o.Tlu; import o.URz; import o.XRC; import o.XgG; import o.gCS; import o.kdE; import o.kin; import o.lql; import o.mju; import o.nMh; import o.yZt; import org.bouncycastle.crypto.tls.CipherSuite; /* loaded from: classes2.dex */ public class TextInputLayout extends LinearLayout { private static int aE = 1; private static byte ax; private static int az; private static final int t; private static final int[][] x; private int A; private int B; private final int C; private int D; private int E; private int F; private C4363bXv G; private C4363bXv H; private int I; private ColorStateList J; private ColorStateList K; private ColorStateList L; private int M; private int N; private Drawable O; private int P; private int Q; private int R; private int S; private int T; private StateListDrawable U; private boolean V; private int W; boolean a; private final Rect aA; private final RectF aB; private boolean aa; private ColorStateList ab; private int ac; private int ad; private final FrameLayout ae; private int af; private int ag; private boolean ah; private CharSequence ai; private C4363bXv aj; private Drawable ak; private int al; private int am; private ColorStateList an; private TextView ao; private int ap; private gCS aq; private gCS ar; private Drawable as; private final Rect at; private ColorStateList au; private int av; private FLD aw; private Typeface ay; int b; boolean c; int d; final lql e; public EditText f; final LinkedHashSet g; final EndCompoundLayout h; TextView i; CharSequence j; RVV k; boolean l; boolean m; boolean n; /* renamed from: o, reason: collision with root package name */ public final XRC f6485o; CharSequence p; boolean q; final StartCompoundLayout r; boolean s; private ValueAnimator u; private boolean v; private C4363bXv w; private boolean y; private int z; /* loaded from: classes2.dex */ public interface HBt { void c(TextInputLayout textInputLayout); } /* loaded from: classes2.dex */ public interface LWm { } /* loaded from: classes2.dex */ public interface RVV { int MH_(Editable editable); } private void aC(String str, Object[] objArr) { byte[] decode = Base64.decode(str, 0); byte[] bArr = new byte[decode.length]; for (int i = 0; i < decode.length; i++) { bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ ax); } objArr[0] = new String(bArr, StandardCharsets.UTF_8); } static { i(); t = C17052tZT.NHB.Widget_Design_TextInputLayout; x = new int[][]{new int[]{R.attr.state_pressed}, new int[0]}; } public TextInputLayout(Context context) { this(context, null); } public TextInputLayout(Context context, AttributeSet attributeSet) { this(context, attributeSet, C17052tZT.IeS.textInputStyle); } /* JADX WARN: Illegal instructions before constructor call */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public TextInputLayout(android.content.Context r17, android.util.AttributeSet r18, int r19) { /* Method dump skipped, instructions count: 995 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.textfield.TextInputLayout.(android.content.Context, android.util.AttributeSet, int):void"); } @Override // android.view.ViewGroup public void addView(View view, int i, ViewGroup.LayoutParams layoutParams) { if (view instanceof EditText) { FrameLayout.LayoutParams layoutParams2 = new FrameLayout.LayoutParams(layoutParams); layoutParams2.gravity = (layoutParams2.gravity & (-113)) | 16; this.ae.addView(view, layoutParams2); this.ae.setLayoutParams(layoutParams); t(); EditText editText = (EditText) view; if (this.f == null) { int i2 = this.h.j; this.f = editText; int i3 = this.am; if (i3 != -1) { setMinEms(i3); } else { setMinWidth(this.al); } int i4 = this.ad; if (i4 != -1) { setMaxEms(i4); } else { setMaxWidth(this.ag); } this.y = false; k(); setTextInputAccessibilityDelegate(new IeS(this)); lql lqlVar = this.e; Typeface typeface = this.f.getTypeface(); boolean JL_ = lqlVar.JL_(typeface); boolean JM_ = lqlVar.JM_(typeface); if (JL_ || JM_) { lqlVar.c(false); } lql lqlVar2 = this.e; float textSize = this.f.getTextSize(); if (lqlVar2.f != textSize) { lqlVar2.f = textSize; lqlVar2.c(false); } lql lqlVar3 = this.e; float letterSpacing = this.f.getLetterSpacing(); if (lqlVar3.g != letterSpacing) { lqlVar3.g = letterSpacing; lqlVar3.c(false); } int gravity = this.f.getGravity(); lql lqlVar4 = this.e; int i5 = (gravity & (-113)) | 48; if (lqlVar4.b != i5) { lqlVar4.b = i5; lqlVar4.c(false); } lql lqlVar5 = this.e; if (lqlVar5.i != gravity) { lqlVar5.i = gravity; lqlVar5.c(false); } this.f.addTextChangedListener(new TextWatcher(this) { // from class: com.google.android.material.textfield.TextInputLayout.3 private TextInputLayout d; @Override // android.text.TextWatcher public final void beforeTextChanged(CharSequence charSequence, int i6, int i7, int i8) { } @Override // android.text.TextWatcher public final void onTextChanged(CharSequence charSequence, int i6, int i7, int i8) { } { this.d = this; } @Override // android.text.TextWatcher public final void afterTextChanged(Editable editable) { this.d.a(!r0.s, false); if (this.d.c) { this.d.MF_(editable); } if (this.d.q) { TextInputLayout textInputLayout = this.d; if (textInputLayout.k.MH_(editable) == 0 && !textInputLayout.l) { textInputLayout.e(); } else { textInputLayout.c(); } } } }); if (this.L == null) { this.L = this.f.getHintTextColors(); } if (this.m) { if (TextUtils.isEmpty(this.j)) { CharSequence hint = this.f.getHint(); this.ai = hint; setHint(hint); this.f.setHint((CharSequence) null); } this.n = true; } if (this.i != null) { MF_(this.f.getText()); } a(); this.f6485o.b(); this.r.bringToFront(); this.h.bringToFront(); Iterator it = this.g.iterator(); while (it.hasNext()) { it.next().c(this); } this.h.a(); if (!isEnabled()) { editText.setEnabled(false); } a(false, true); return; } throw new IllegalArgumentException("We already have an EditText, can only have one"); } super.addView(view, i, layoutParams); } public void setBoxBackgroundMode(int i) { if (i == this.d) { return; } this.d = i; if (this.f != null) { k(); } } private void k() { int i = this.d; byte b = 0; if (i == 0) { this.w = null; this.G = null; this.H = null; } else if (i == 1) { this.w = new C4363bXv(this.aw); this.G = new C4363bXv(); this.H = new C4363bXv(); } else if (i == 2) { if (this.m && !(this.w instanceof C16844rlF)) { FLD fld = this.aw; if (fld == null) { fld = new FLD(); } this.w = new C16844rlF.RVV(new C16844rlF.LWm(fld, new RectF(), b)); } else { this.w = new C4363bXv(this.aw); } this.G = null; this.H = null; } else { StringBuilder sb = new StringBuilder(); sb.append(this.d); sb.append(" is illegal; only @BoxBackgroundMode constants are supported."); throw new IllegalArgumentException(sb.toString()); } b(); j(); if (this.d == 1) { if (getContext().getResources().getConfiguration().fontScale >= 2.0f) { this.A = getResources().getDimensionPixelSize(C17052tZT.HBt.material_font_2_0_box_collapsed_padding_top); } else if (getContext().getResources().getConfiguration().fontScale >= 1.3f) { this.A = getResources().getDimensionPixelSize(C17052tZT.HBt.material_font_1_3_box_collapsed_padding_top); } } if (this.f != null && this.d == 1) { if (getContext().getResources().getConfiguration().fontScale >= 2.0f) { EditText editText = this.f; ViewCompat.a(editText, ViewCompat.q(editText), getResources().getDimensionPixelSize(C17052tZT.HBt.material_filled_edittext_font_2_0_padding_top), ViewCompat.r(this.f), getResources().getDimensionPixelSize(C17052tZT.HBt.material_filled_edittext_font_2_0_padding_bottom)); } else if (getContext().getResources().getConfiguration().fontScale >= 1.3f) { EditText editText2 = this.f; ViewCompat.a(editText2, ViewCompat.q(editText2), getResources().getDimensionPixelSize(C17052tZT.HBt.material_filled_edittext_font_1_3_padding_top), ViewCompat.r(this.f), getResources().getDimensionPixelSize(C17052tZT.HBt.material_filled_edittext_font_1_3_padding_bottom)); } } if (this.d != 0) { t(); } EditText editText3 = this.f; if (editText3 instanceof AutoCompleteTextView) { AutoCompleteTextView autoCompleteTextView = (AutoCompleteTextView) editText3; if (autoCompleteTextView.getDropDownBackground() == null) { int i2 = this.d; if (i2 == 2) { if (this.aj == null) { this.aj = b(true); } autoCompleteTextView.setDropDownBackgroundDrawable(this.aj); } else if (i2 == 1) { if (this.U == null) { StateListDrawable stateListDrawable = new StateListDrawable(); this.U = stateListDrawable; int[] iArr = {R.attr.state_above_anchor}; if (this.aj == null) { this.aj = b(true); } stateListDrawable.addState(iArr, this.aj); this.U.addState(new int[0], b(false)); } autoCompleteTextView.setDropDownBackgroundDrawable(this.U); } } } } /* JADX INFO: Access modifiers changed from: package-private */ public final void b() { EditText editText = this.f; if (editText == null || this.w == null) { return; } if ((this.y || editText.getBackground() == null) && this.d != 0) { ViewCompat.sn_(this.f, MB_()); this.y = true; } } private Drawable MB_() { int i; EditText editText = this.f; if ((editText instanceof AutoCompleteTextView) && editText.getInputType() == 0) { int d = C16021kYS.d(this.f, C17052tZT.IeS.colorControlHighlight); int i2 = this.d; if (i2 != 2) { if (i2 != 1) { return null; } C4363bXv c4363bXv = this.w; int i3 = this.D; return new RippleDrawable(new ColorStateList(x, new int[]{Rez.a(Rez.d(i3, Math.round(Color.alpha(i3) * 0.1f)), d), i3}), c4363bXv, c4363bXv); } Context context = getContext(); C4363bXv c4363bXv2 = this.w; int[][] iArr = x; TypedValue Kt_ = TZc.Kt_(context, C17052tZT.IeS.colorSurface, "TextInputLayout"); if (Kt_.resourceId != 0) { i = nMh.getColor(context, Kt_.resourceId); } else { i = Kt_.data; } C4363bXv c4363bXv3 = new C4363bXv(c4363bXv2.B.l); int a = Rez.a(Rez.d(i, Math.round(Color.alpha(i) * 0.1f)), d); ColorStateList colorStateList = new ColorStateList(iArr, new int[]{a, 0}); if (c4363bXv3.B.d != colorStateList) { c4363bXv3.B.d = colorStateList; c4363bXv3.onStateChange(c4363bXv3.getState()); } c4363bXv3.setTint(i); ColorStateList colorStateList2 = new ColorStateList(iArr, new int[]{a, i}); C4363bXv c4363bXv4 = new C4363bXv(c4363bXv2.B.l); c4363bXv4.setTint(-1); return new LayerDrawable(new Drawable[]{new RippleDrawable(colorStateList2, c4363bXv3, c4363bXv4), c4363bXv2}); } return this.w; } private C4363bXv b(boolean z) { float dimensionPixelOffset; int i; float dimensionPixelOffset2 = getResources().getDimensionPixelOffset(C17052tZT.HBt.mtrl_shape_corner_size_small_component); float f = z ? dimensionPixelOffset2 : BitmapDescriptorFactory.HUE_RED; EditText editText = this.f; if (!(editText instanceof MaterialAutoCompleteTextView)) { dimensionPixelOffset = getResources().getDimensionPixelOffset(C17052tZT.HBt.m3_comp_outlined_autocomplete_menu_container_elevation); } else { dimensionPixelOffset = ((MaterialAutoCompleteTextView) editText).c; } int dimensionPixelOffset3 = getResources().getDimensionPixelOffset(C17052tZT.HBt.mtrl_exposed_dropdown_menu_popup_vertical_padding); FLD.RVV rvv = new FLD.RVV(); rvv.f = new C17525xWe(f); rvv.k = new C17525xWe(f); rvv.e = new C17525xWe(dimensionPixelOffset2); rvv.d = new C17525xWe(dimensionPixelOffset2); FLD fld = new FLD(rvv, (byte) 0); Context context = getContext(); TypedValue Kt_ = TZc.Kt_(context, C17052tZT.IeS.colorSurface, "MaterialShapeDrawable"); if (Kt_.resourceId != 0) { i = nMh.getColor(context, Kt_.resourceId); } else { i = Kt_.data; } C4363bXv c4363bXv = new C4363bXv(); c4363bXv.d(context); ColorStateList valueOf = ColorStateList.valueOf(i); if (c4363bXv.B.d != valueOf) { c4363bXv.B.d = valueOf; c4363bXv.onStateChange(c4363bXv.getState()); } c4363bXv.n(dimensionPixelOffset); c4363bXv.setShapeAppearanceModel(fld); if (c4363bXv.B.f == null) { c4363bXv.B.f = new Rect(); } c4363bXv.B.f.set(0, dimensionPixelOffset3, 0, dimensionPixelOffset3); c4363bXv.invalidateSelf(); return c4363bXv; } public void setBoxStrokeWidthResource(int i) { setBoxStrokeWidth(getResources().getDimensionPixelSize(i)); } public void setBoxStrokeWidth(int i) { this.z = i; j(); } public void setBoxStrokeWidthFocusedResource(int i) { setBoxStrokeWidthFocused(getResources().getDimensionPixelSize(i)); } public void setBoxStrokeWidthFocused(int i) { this.E = i; j(); } public void setBoxStrokeColor(int i) { if (this.W != i) { this.W = i; j(); } } public void setBoxStrokeColorStateList(ColorStateList colorStateList) { if (colorStateList.isStateful()) { this.P = colorStateList.getDefaultColor(); this.S = colorStateList.getColorForState(new int[]{-16842910}, -1); this.af = colorStateList.getColorForState(new int[]{R.attr.state_hovered, R.attr.state_enabled}, -1); this.W = colorStateList.getColorForState(new int[]{R.attr.state_focused, R.attr.state_enabled}, -1); } else if (this.W != colorStateList.getDefaultColor()) { this.W = colorStateList.getDefaultColor(); } j(); } public void setBoxStrokeErrorColor(ColorStateList colorStateList) { if (this.au != colorStateList) { this.au = colorStateList; j(); } } public void setBoxBackgroundColorResource(int i) { setBoxBackgroundColor(nMh.getColor(getContext(), i)); } public void setBoxBackgroundColor(int i) { if (this.D != i) { this.D = i; this.N = i; this.T = i; this.ac = i; h(); } } public void setBoxBackgroundColorStateList(ColorStateList colorStateList) { int defaultColor = colorStateList.getDefaultColor(); this.N = defaultColor; this.D = defaultColor; this.R = colorStateList.getColorForState(new int[]{-16842910}, -1); this.T = colorStateList.getColorForState(new int[]{R.attr.state_focused, R.attr.state_enabled}, -1); this.ac = colorStateList.getColorForState(new int[]{R.attr.state_hovered, R.attr.state_enabled}, -1); h(); } public void setShapeAppearanceModel(FLD fld) { C4363bXv c4363bXv = this.w; if (c4363bXv == null || c4363bXv.B.l == fld) { return; } this.aw = fld; h(); } public void setBoxCornerRadiiResources(int i, int i2, int i3, int i4) { setBoxCornerRadii(getContext().getResources().getDimension(i), getContext().getResources().getDimension(i2), getContext().getResources().getDimension(i4), getContext().getResources().getDimension(i3)); } @Override // android.view.ViewGroup, android.view.View public void dispatchProvideAutofillStructure(ViewStructure viewStructure, int i) { EditText editText = this.f; if (editText == null) { super.dispatchProvideAutofillStructure(viewStructure, i); return; } if (this.ai != null) { boolean z = this.n; this.n = false; CharSequence hint = editText.getHint(); this.f.setHint(this.ai); try { super.dispatchProvideAutofillStructure(viewStructure, i); return; } finally { this.f.setHint(hint); this.n = z; } } viewStructure.setAutofillId(getAutofillId()); onProvideAutofillStructure(viewStructure, i); onProvideAutofillVirtualStructure(viewStructure, i); viewStructure.setChildCount(this.ae.getChildCount()); for (int i2 = 0; i2 < this.ae.getChildCount(); i2++) { View childAt = this.ae.getChildAt(i2); ViewStructure newChild = viewStructure.newChild(i2); childAt.dispatchProvideAutofillStructure(newChild, i); if (childAt == this.f) { newChild.setHint(this.m ? this.j : null); } } } private void t() { if (this.d != 1) { LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) this.ae.getLayoutParams(); int g = g(); if (g != ((ViewGroup.MarginLayoutParams) layoutParams).topMargin) { ((ViewGroup.MarginLayoutParams) layoutParams).topMargin = g; this.ae.requestLayout(); } } } @Override // android.widget.LinearLayout, android.view.View public int getBaseline() { EditText editText = this.f; if (editText != null) { return editText.getBaseline() + getPaddingTop() + g(); } return super.getBaseline(); } public final void a(boolean z, boolean z2) { ColorStateList colorStateList; TextView textView; boolean isEnabled = isEnabled(); EditText editText = this.f; boolean z3 = (editText == null || TextUtils.isEmpty(editText.getText())) ? false : true; EditText editText2 = this.f; boolean z4 = editText2 != null && editText2.hasFocus(); ColorStateList colorStateList2 = this.L; if (colorStateList2 != null) { lql lqlVar = this.e; if (lqlVar.e != colorStateList2 || lqlVar.j != colorStateList2) { lqlVar.e = colorStateList2; lqlVar.j = colorStateList2; lqlVar.c(false); } } if (!isEnabled) { ColorStateList colorStateList3 = this.L; int colorForState = colorStateList3 != null ? colorStateList3.getColorForState(new int[]{-16842910}, this.S) : this.S; lql lqlVar2 = this.e; ColorStateList valueOf = ColorStateList.valueOf(colorForState); if (lqlVar2.e != valueOf || lqlVar2.j != valueOf) { lqlVar2.e = valueOf; lqlVar2.j = valueOf; lqlVar2.c(false); } } else if (this.f6485o.c()) { lql lqlVar3 = this.e; TextView textView2 = this.f6485o.h; ColorStateList textColors = textView2 != null ? textView2.getTextColors() : null; if (lqlVar3.e != textColors || lqlVar3.j != textColors) { lqlVar3.e = textColors; lqlVar3.j = textColors; lqlVar3.c(false); } } else if (this.a && (textView = this.i) != null) { lql lqlVar4 = this.e; ColorStateList textColors2 = textView.getTextColors(); if (lqlVar4.e != textColors2 || lqlVar4.j != textColors2) { lqlVar4.e = textColors2; lqlVar4.j = textColors2; lqlVar4.c(false); } } else if (z4 && (colorStateList = this.ab) != null) { lql lqlVar5 = this.e; if (lqlVar5.e != colorStateList) { lqlVar5.e = colorStateList; lqlVar5.c(false); } } if (z3 || !this.V || (isEnabled() && z4)) { if (z2 || this.l) { e(z); return; } return; } if (z2 || !this.l) { a(z); } } public void setMinEms(int i) { this.am = i; EditText editText = this.f; if (editText == null || i == -1) { return; } editText.setMinEms(i); } public void setMaxEms(int i) { this.ad = i; EditText editText = this.f; if (editText == null || i == -1) { return; } editText.setMaxEms(i); } public void setMinWidth(int i) { this.al = i; EditText editText = this.f; if (editText == null || i == -1) { return; } editText.setMinWidth(i); } public void setMinWidthResource(int i) { setMinWidth(getContext().getResources().getDimensionPixelSize(i)); } public void setMaxWidth(int i) { this.ag = i; EditText editText = this.f; if (editText == null || i == -1) { return; } editText.setMaxWidth(i); } public void setMaxWidthResource(int i) { setMaxWidth(getContext().getResources().getDimensionPixelSize(i)); } public void setHint(CharSequence charSequence) { if (this.m) { a(charSequence); sendAccessibilityEvent(2048); } } public void setHint(int i) { int i2 = 2 % 2; CharSequence charSequence = null; if (i != 0) { int i3 = az + 93; aE = i3 % 128; if (i3 % 2 == 0) { getResources().getString(i).startsWith(",*,)"); throw null; } Resources resources = getResources(); String string = resources.getString(i); if (string.startsWith(",*,)")) { Object[] objArr = new Object[1]; aC(string.substring(4), objArr); string = ((String) objArr[0]).intern(); CharSequence text = resources.getText(i); if (text instanceof Spanned) { SpannableString spannableString = new SpannableString(string); TextUtils.copySpansFrom((SpannedString) text, 0, string.length(), Object.class, spannableString, 0); charSequence = spannableString; } else { int i4 = az + 125; aE = i4 % 128; int i5 = i4 % 2; } } charSequence = string; } setHint(charSequence); } private void a(CharSequence charSequence) { if (TextUtils.equals(charSequence, this.j)) { return; } this.j = charSequence; this.e.d(charSequence); if (this.l) { return; } l(); } public void setHintEnabled(boolean z) { if (z != this.m) { this.m = z; if (!z) { this.n = false; if (!TextUtils.isEmpty(this.j) && TextUtils.isEmpty(this.f.getHint())) { this.f.setHint(this.j); } a((CharSequence) null); } else { CharSequence hint = this.f.getHint(); if (!TextUtils.isEmpty(hint)) { if (TextUtils.isEmpty(this.j)) { setHint(hint); } this.f.setHint((CharSequence) null); } this.n = true; } if (this.f != null) { t(); } } } public void setHintTextAppearance(int i) { this.e.a(i); this.ab = this.e.e; if (this.f != null) { a(false, false); t(); } } public void setHintTextColor(ColorStateList colorStateList) { if (this.ab != colorStateList) { if (this.L == null) { lql lqlVar = this.e; if (lqlVar.e != colorStateList) { lqlVar.e = colorStateList; lqlVar.c(false); } } this.ab = colorStateList; if (this.f != null) { a(false, false); } } } public void setErrorEnabled(boolean z) { XRC xrc = this.f6485o; if (xrc.c != z) { Animator animator = xrc.e; if (animator != null) { animator.cancel(); } if (z) { AppCompatTextView appCompatTextView = new AppCompatTextView(xrc.b); xrc.h = appCompatTextView; appCompatTextView.setId(C17052tZT.ZqN.textinput_error); xrc.h.setTextAlignment(5); Typeface typeface = xrc.r; if (typeface != null) { xrc.h.setTypeface(typeface); } int i = xrc.j; xrc.j = i; TextView textView = xrc.h; if (textView != null) { xrc.s.ME_(textView, i); } ColorStateList colorStateList = xrc.m; xrc.m = colorStateList; TextView textView2 = xrc.h; if (textView2 != null && colorStateList != null) { textView2.setTextColor(colorStateList); } CharSequence charSequence = xrc.f; xrc.f = charSequence; TextView textView3 = xrc.h; if (textView3 != null) { textView3.setContentDescription(charSequence); } int i2 = xrc.i; xrc.i = i2; TextView textView4 = xrc.h; if (textView4 != null) { ViewCompat.c(textView4, i2); } xrc.h.setVisibility(4); xrc.Mu_(xrc.h, 0); } else { xrc.a(); xrc.Mv_(xrc.h, 0); xrc.h = null; xrc.s.a(); xrc.s.j(); } xrc.c = z; } } public void setErrorTextAppearance(int i) { XRC xrc = this.f6485o; xrc.j = i; TextView textView = xrc.h; if (textView != null) { xrc.s.ME_(textView, i); } } public void setErrorTextColor(ColorStateList colorStateList) { XRC xrc = this.f6485o; xrc.m = colorStateList; TextView textView = xrc.h; if (textView == null || colorStateList == null) { return; } textView.setTextColor(colorStateList); } public void setHelperTextTextAppearance(int i) { XRC xrc = this.f6485o; xrc.l = i; TextView textView = xrc.f8444o; if (textView != null) { URz.we_(textView, i); } } public void setHelperTextColor(ColorStateList colorStateList) { XRC xrc = this.f6485o; xrc.p = colorStateList; TextView textView = xrc.f8444o; if (textView == null || colorStateList == null) { return; } textView.setTextColor(colorStateList); } public void setHelperTextEnabled(boolean z) { final XRC xrc = this.f6485o; if (xrc.k != z) { Animator animator = xrc.e; if (animator != null) { animator.cancel(); } if (!z) { Animator animator2 = xrc.e; if (animator2 != null) { animator2.cancel(); } int i = xrc.d; if (i == 2) { xrc.a = 0; } xrc.e(i, xrc.a, xrc.Mt_(xrc.f8444o, "")); xrc.Mv_(xrc.f8444o, 1); xrc.f8444o = null; xrc.s.a(); xrc.s.j(); } else { AppCompatTextView appCompatTextView = new AppCompatTextView(xrc.b); xrc.f8444o = appCompatTextView; appCompatTextView.setId(C17052tZT.ZqN.textinput_helper_text); xrc.f8444o.setTextAlignment(5); Typeface typeface = xrc.r; if (typeface != null) { xrc.f8444o.setTypeface(typeface); } xrc.f8444o.setVisibility(4); ViewCompat.c(xrc.f8444o, 1); int i2 = xrc.l; xrc.l = i2; TextView textView = xrc.f8444o; if (textView != null) { URz.we_(textView, i2); } ColorStateList colorStateList = xrc.p; xrc.p = colorStateList; TextView textView2 = xrc.f8444o; if (textView2 != null && colorStateList != null) { textView2.setTextColor(colorStateList); } xrc.Mu_(xrc.f8444o, 1); xrc.f8444o.setAccessibilityDelegate(new View.AccessibilityDelegate(xrc) { // from class: o.XRC.5 private XRC a; { this.a = xrc; } @Override // android.view.View.AccessibilityDelegate public final void onInitializeAccessibilityNodeInfo(View view, AccessibilityNodeInfo accessibilityNodeInfo) { super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfo); EditText editText = this.a.s.f; if (editText != null) { accessibilityNodeInfo.setLabeledBy(editText); } } }); } xrc.k = z; } } public void setHelperText(CharSequence charSequence) { if (TextUtils.isEmpty(charSequence)) { if (this.f6485o.k) { setHelperTextEnabled(false); return; } return; } if (!this.f6485o.k) { setHelperTextEnabled(true); } XRC xrc = this.f6485o; Animator animator = xrc.e; if (animator != null) { animator.cancel(); } xrc.n = charSequence; xrc.f8444o.setText(charSequence); int i = xrc.d; if (i != 2) { xrc.a = 2; } xrc.e(i, xrc.a, xrc.Mt_(xrc.f8444o, charSequence)); } public void setErrorContentDescription(CharSequence charSequence) { XRC xrc = this.f6485o; xrc.f = charSequence; TextView textView = xrc.h; if (textView != null) { textView.setContentDescription(charSequence); } } public void setErrorAccessibilityLiveRegion(int i) { XRC xrc = this.f6485o; xrc.i = i; TextView textView = xrc.h; if (textView != null) { ViewCompat.c(textView, i); } } public void setErrorIconDrawable(Drawable drawable) { this.h.Mi_(drawable); } public void setErrorIconTintList(ColorStateList colorStateList) { EndCompoundLayout endCompoundLayout = this.h; if (endCompoundLayout.l != colorStateList) { endCompoundLayout.l = colorStateList; C15977kAW.Mo_(endCompoundLayout.s, endCompoundLayout.k, colorStateList, endCompoundLayout.m); } } public void setErrorIconTintMode(PorterDuff.Mode mode) { EndCompoundLayout endCompoundLayout = this.h; if (endCompoundLayout.m != mode) { endCompoundLayout.m = mode; C15977kAW.Mo_(endCompoundLayout.s, endCompoundLayout.k, endCompoundLayout.l, mode); } } public void setCounterEnabled(boolean z) { if (this.c != z) { if (z) { AppCompatTextView appCompatTextView = new AppCompatTextView(getContext()); this.i = appCompatTextView; appCompatTextView.setId(C17052tZT.ZqN.textinput_counter); Typeface typeface = this.ay; if (typeface != null) { this.i.setTypeface(typeface); } this.i.setMaxLines(1); this.f6485o.Mu_(this.i, 2); CYM.rA_((ViewGroup.MarginLayoutParams) this.i.getLayoutParams(), getResources().getDimensionPixelOffset(C17052tZT.HBt.mtrl_textinput_counter_margin_start)); p(); if (this.i != null) { EditText editText = this.f; MF_(editText != null ? editText.getText() : null); } } else { this.f6485o.Mv_(this.i, 2); this.i = null; } this.c = z; } } public void setCounterTextAppearance(int i) { if (this.M != i) { this.M = i; p(); } } public void setCounterTextColor(ColorStateList colorStateList) { if (this.J != colorStateList) { this.J = colorStateList; p(); } } public void setCounterOverflowTextAppearance(int i) { if (this.F != i) { this.F = i; p(); } } public void setCounterOverflowTextColor(ColorStateList colorStateList) { if (this.K != colorStateList) { this.K = colorStateList; p(); } } public void setCounterMaxLength(int i) { if (this.b != i) { if (i <= 0) { i = -1; } this.b = i; if (!this.c || this.i == null) { return; } EditText editText = this.f; MF_(editText == null ? null : editText.getText()); } } final void MF_(Editable editable) { int MH_ = this.k.MH_(editable); boolean z = this.a; int i = this.b; if (i == -1) { this.i.setText(String.valueOf(MH_)); this.i.setContentDescription(null); this.a = false; } else { this.a = MH_ > i; MD_(getContext(), this.i, MH_, this.b, this.a); if (z != this.a) { p(); } mju d = mju.d(); TextView textView = this.i; String string = getContext().getString(C17052tZT.ojQ.character_counter_pattern, Integer.valueOf(MH_), Integer.valueOf(this.b)); textView.setText(string != null ? d.d(string, d.e).toString() : null); } if (this.f == null || z == this.a) { return; } a(false, false); j(); a(); } private static void MD_(Context context, TextView textView, int i, int i2, boolean z) { int i3; if (z) { i3 = C17052tZT.ojQ.character_counter_overflowed_content_description; } else { i3 = C17052tZT.ojQ.character_counter_content_description; } textView.setContentDescription(context.getString(i3, Integer.valueOf(i), Integer.valueOf(i2))); } public void setPlaceholderText(CharSequence charSequence) { if (this.ao == null) { AppCompatTextView appCompatTextView = new AppCompatTextView(getContext()); this.ao = appCompatTextView; appCompatTextView.setId(C17052tZT.ZqN.textinput_placeholder); ViewCompat.g(this.ao, 2); gCS f = f(); this.aq = f; f.d(67L); this.ar = f(); setPlaceholderTextAppearance(this.ap); setPlaceholderTextColor(this.an); } if (TextUtils.isEmpty(charSequence)) { d(false); } else { if (!this.q) { d(true); } this.p = charSequence; } EditText editText = this.f; if (this.k.MH_(editText == null ? null : editText.getText()) == 0 && !this.l) { e(); } else { c(); } } private void d(boolean z) { if (this.q == z) { return; } if (z) { TextView textView = this.ao; if (textView != null) { this.ae.addView(textView); this.ao.setVisibility(0); } } else { TextView textView2 = this.ao; if (textView2 != null) { textView2.setVisibility(8); } this.ao = null; } this.q = z; } private gCS f() { gCS gcs = new gCS(); gcs.c(DAZ.a(getContext(), C17052tZT.IeS.motionDurationShort2, 87)); gcs.Bj_(DAZ.Kh_(getContext(), C17052tZT.IeS.motionEasingLinearInterpolator, C6217cMa.e)); return gcs; } final void e() { if (this.ao == null || !this.q || TextUtils.isEmpty(this.p)) { return; } this.ao.setText(this.p); kin.Bh_(this.ae, this.aq); this.ao.setVisibility(0); this.ao.bringToFront(); announceForAccessibility(this.p); } final void c() { TextView textView = this.ao; if (textView == null || !this.q) { return; } textView.setText((CharSequence) null); kin.Bh_(this.ae, this.ar); this.ao.setVisibility(4); } public void setPlaceholderTextColor(ColorStateList colorStateList) { if (this.an != colorStateList) { this.an = colorStateList; TextView textView = this.ao; if (textView == null || colorStateList == null) { return; } textView.setTextColor(colorStateList); } } public void setPlaceholderTextAppearance(int i) { this.ap = i; TextView textView = this.ao; if (textView != null) { URz.we_(textView, i); } } public void setPrefixTextColor(ColorStateList colorStateList) { this.r.a.setTextColor(colorStateList); } public void setPrefixTextAppearance(int i) { URz.we_(this.r.a, i); } public void setSuffixTextColor(ColorStateList colorStateList) { this.h.q.setTextColor(colorStateList); } public void setSuffixTextAppearance(int i) { URz.we_(this.h.q, i); } @Override // android.view.View public void setEnabled(boolean z) { MC_(this, z); super.setEnabled(z); } private static void MC_(ViewGroup viewGroup, boolean z) { int childCount = viewGroup.getChildCount(); for (int i = 0; i < childCount; i++) { View childAt = viewGroup.getChildAt(i); childAt.setEnabled(z); if (childAt instanceof ViewGroup) { MC_((ViewGroup) childAt, z); } } } private void p() { ColorStateList colorStateList; ColorStateList colorStateList2; TextView textView = this.i; if (textView != null) { ME_(textView, this.a ? this.F : this.M); if (!this.a && (colorStateList2 = this.J) != null) { this.i.setTextColor(colorStateList2); } if (!this.a || (colorStateList = this.K) == null) { return; } this.i.setTextColor(colorStateList); } } private void ME_(TextView textView, int i) { try { URz.we_(textView, i); if (textView.getTextColors().getDefaultColor() != -65281) { return; } } catch (Exception unused) { } URz.we_(textView, C17052tZT.NHB.TextAppearance_AppCompat_Caption); textView.setTextColor(nMh.getColor(getContext(), C17052tZT.Sts.design_error)); } private int g() { float d; if (!this.m) { return 0; } int i = this.d; if (i == 0) { d = this.e.d(); } else { if (i != 2) { return 0; } d = this.e.d() / 2.0f; } return (int) d; } private int a(int i, boolean z) { int compoundPaddingLeft = i + this.f.getCompoundPaddingLeft(); return (this.r.b == null || z) ? compoundPaddingLeft : (compoundPaddingLeft - this.r.a.getMeasuredWidth()) + this.r.a.getPaddingLeft(); } private int d(int i, boolean z) { int compoundPaddingRight = i - this.f.getCompoundPaddingRight(); return (this.r.b == null || !z) ? compoundPaddingRight : compoundPaddingRight + (this.r.a.getMeasuredWidth() - this.r.a.getPaddingRight()); } private void h() { ColorStateList valueOf; int i; int i2; C4363bXv c4363bXv = this.w; if (c4363bXv == null) { return; } FLD fld = c4363bXv.B.l; FLD fld2 = this.aw; if (fld != fld2) { this.w.setShapeAppearanceModel(fld2); } if (this.d == 2 && (i = this.I) >= 0 && (i2 = this.B) != 0) { C4363bXv c4363bXv2 = this.w; c4363bXv2.B.p = i; c4363bXv2.invalidateSelf(); ColorStateList valueOf2 = ColorStateList.valueOf(i2); if (c4363bXv2.B.r != valueOf2) { c4363bXv2.B.r = valueOf2; c4363bXv2.onStateChange(c4363bXv2.getState()); } } int i3 = this.D; if (this.d == 1) { i3 = Rez.a(this.D, C16021kYS.d(getContext(), C17052tZT.IeS.colorSurface, 0)); } this.D = i3; C4363bXv c4363bXv3 = this.w; ColorStateList valueOf3 = ColorStateList.valueOf(i3); if (c4363bXv3.B.d != valueOf3) { c4363bXv3.B.d = valueOf3; c4363bXv3.onStateChange(c4363bXv3.getState()); } C4363bXv c4363bXv4 = this.G; if (c4363bXv4 != null && this.H != null) { if (this.I >= 0 && this.B != 0) { if (this.f.isFocused()) { valueOf = ColorStateList.valueOf(this.P); } else { valueOf = ColorStateList.valueOf(this.B); } if (c4363bXv4.B.d != valueOf) { c4363bXv4.B.d = valueOf; c4363bXv4.onStateChange(c4363bXv4.getState()); } C4363bXv c4363bXv5 = this.H; ColorStateList valueOf4 = ColorStateList.valueOf(this.B); if (c4363bXv5.B.d != valueOf4) { c4363bXv5.B.d = valueOf4; c4363bXv5.onStateChange(c4363bXv5.getState()); } } invalidate(); } b(); } public final void a() { Drawable background; TextView textView; EditText editText = this.f; if (editText == null || this.d != 0 || (background = editText.getBackground()) == null) { return; } FIj.b(); Drawable mutate = background.mutate(); if (this.f6485o.c()) { TextView textView2 = this.f6485o.h; mutate.setColorFilter(RXZ.fM_(textView2 != null ? textView2.getCurrentTextColor() : -1, PorterDuff.Mode.SRC_IN)); } else if (this.a && (textView = this.i) != null) { mutate.setColorFilter(RXZ.fM_(textView.getCurrentTextColor(), PorterDuff.Mode.SRC_IN)); } else { Tlu.pt_(mutate); this.f.refreshDrawableState(); } } /* loaded from: classes2.dex */ static class Sts extends XgG { public static final Parcelable.Creator CREATOR = new Parcelable.ClassLoaderCreator() { // from class: com.google.android.material.textfield.TextInputLayout.Sts.3 @Override // android.os.Parcelable.Creator public final /* synthetic */ Object createFromParcel(Parcel parcel) { return new Sts(parcel, null); } @Override // android.os.Parcelable.ClassLoaderCreator public final /* synthetic */ Sts createFromParcel(Parcel parcel, ClassLoader classLoader) { return new Sts(parcel, classLoader); } @Override // android.os.Parcelable.Creator public final /* bridge */ /* synthetic */ Object[] newArray(int i) { return new Sts[i]; } }; boolean c; CharSequence d; Sts(Parcelable parcelable) { super(parcelable); } Sts(Parcel parcel, ClassLoader classLoader) { super(parcel, classLoader); this.d = (CharSequence) TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(parcel); this.c = parcel.readInt() == 1; } @Override // o.XgG, android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { super.writeToParcel(parcel, i); TextUtils.writeToParcel(this.d, parcel, i); parcel.writeInt(this.c ? 1 : 0); } public final String toString() { StringBuilder sb = new StringBuilder("TextInputLayout.SavedState{"); sb.append(Integer.toHexString(System.identityHashCode(this))); sb.append(" error="); sb.append((Object) this.d); sb.append(UrlTreeKt.componentParamSuffix); return sb.toString(); } } @Override // android.view.View public Parcelable onSaveInstanceState() { Sts sts = new Sts(super.onSaveInstanceState()); if (this.f6485o.c()) { sts.d = this.f6485o.c ? this.f6485o.g : null; } EndCompoundLayout endCompoundLayout = this.h; sts.c = endCompoundLayout.j != 0 && endCompoundLayout.f6484o.isChecked(); return sts; } @Override // android.view.View protected void onRestoreInstanceState(Parcelable parcelable) { if (!(parcelable instanceof Sts)) { super.onRestoreInstanceState(parcelable); return; } Sts sts = (Sts) parcelable; super.onRestoreInstanceState(sts.b); setError(sts.d); if (sts.c) { post(new Runnable(this) { // from class: com.google.android.material.textfield.TextInputLayout.5 private TextInputLayout c; { this.c = this; } @Override // java.lang.Runnable public final void run() { EndCompoundLayout endCompoundLayout = this.c.h; endCompoundLayout.f6484o.performClick(); endCompoundLayout.f6484o.jumpDrawablesToCurrentState(); } }); } requestLayout(); } @Override // android.view.ViewGroup, android.view.View protected void dispatchRestoreInstanceState(SparseArray sparseArray) { this.s = true; super.dispatchRestoreInstanceState(sparseArray); this.s = false; } @Override // android.widget.LinearLayout, android.view.View public void onRtlPropertiesChanged(int i) { super.onRtlPropertiesChanged(i); byte b = 0; boolean z = i == 1; if (z != this.v) { float Lk_ = this.aw.n.Lk_(this.aB); float Lk_2 = this.aw.k.Lk_(this.aB); float Lk_3 = this.aw.b.Lk_(this.aB); float Lk_4 = this.aw.j.Lk_(this.aB); Spl spl = this.aw.g; Spl spl2 = this.aw.m; Spl spl3 = this.aw.a; Spl spl4 = this.aw.d; FLD.RVV rvv = new FLD.RVV(); rvv.i = spl2; float a = FLD.RVV.a(spl2); if (a != -1.0f) { rvv.f = new C17525xWe(a); } rvv.f8158o = spl; float a2 = FLD.RVV.a(spl); if (a2 != -1.0f) { rvv.k = new C17525xWe(a2); } rvv.a = spl4; float a3 = FLD.RVV.a(spl4); if (a3 != -1.0f) { rvv.e = new C17525xWe(a3); } rvv.b = spl3; float a4 = FLD.RVV.a(spl3); if (a4 != -1.0f) { rvv.d = new C17525xWe(a4); } rvv.f = new C17525xWe(Lk_2); rvv.k = new C17525xWe(Lk_); rvv.e = new C17525xWe(Lk_4); rvv.d = new C17525xWe(Lk_3); FLD fld = new FLD(rvv, b); this.v = z; setShapeAppearanceModel(fld); } } @Override // android.widget.LinearLayout, android.view.View protected void onMeasure(int i, int i2) { boolean z; EditText editText; int max; super.onMeasure(i, i2); if (this.f == null || this.f.getMeasuredHeight() >= (max = Math.max(this.h.getMeasuredHeight(), this.r.getMeasuredHeight()))) { z = false; } else { this.f.setMinimumHeight(max); z = true; } boolean d = d(); if (z || d) { this.f.post(new Runnable(this) { // from class: com.google.android.material.textfield.TextInputLayout.1 private TextInputLayout b; { this.b = this; } @Override // java.lang.Runnable public final void run() { this.b.f.requestLayout(); } }); } if (this.ao != null && (editText = this.f) != null) { this.ao.setGravity(editText.getGravity()); this.ao.setPadding(this.f.getCompoundPaddingLeft(), this.f.getCompoundPaddingTop(), this.f.getCompoundPaddingRight(), this.f.getCompoundPaddingBottom()); } this.h.a(); } public void setStartIconDrawable(int i) { setStartIconDrawable(i != 0 ? AgY.dT_(getContext(), i) : null); } public void setStartIconDrawable(Drawable drawable) { this.r.MA_(drawable); } public void setStartIconMinSize(int i) { this.r.d(i); } public void setStartIconOnClickListener(View.OnClickListener onClickListener) { StartCompoundLayout startCompoundLayout = this.r; CheckableImageButton checkableImageButton = startCompoundLayout.f; View.OnLongClickListener onLongClickListener = startCompoundLayout.e; checkableImageButton.setOnClickListener(onClickListener); C15977kAW.Mr_(checkableImageButton, onLongClickListener); } public void setStartIconOnLongClickListener(View.OnLongClickListener onLongClickListener) { StartCompoundLayout startCompoundLayout = this.r; startCompoundLayout.e = onLongClickListener; CheckableImageButton checkableImageButton = startCompoundLayout.f; checkableImageButton.setOnLongClickListener(onLongClickListener); C15977kAW.Mr_(checkableImageButton, onLongClickListener); } public void setStartIconVisible(boolean z) { this.r.c(z); } public void setStartIconCheckable(boolean z) { this.r.f.setCheckable(z); } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r0v7, types: [android.text.SpannableString, android.text.Spannable] */ /* JADX WARN: Type inference failed for: r9v0, types: [com.google.android.material.textfield.TextInputLayout, android.view.View] */ public void setStartIconContentDescription(int i) { String str; int i2 = 2 % 2; if (i != 0) { int i3 = aE + 71; az = i3 % 128; int i4 = i3 % 2; Resources resources = getResources(); str = resources.getString(i); if (str.startsWith(",*,)")) { int i5 = az + 85; aE = i5 % 128; int i6 = i5 % 2; String substring = str.substring(4); Object[] objArr = new Object[1]; aC(substring, objArr); str = ((String) objArr[0]).intern(); CharSequence text = resources.getText(i); if (text instanceof Spanned) { ?? spannableString = new SpannableString(str); TextUtils.copySpansFrom((SpannedString) text, 0, str.length(), Object.class, spannableString, 0); str = spannableString; } } } else { int i7 = az + 19; aE = i7 % 128; int i8 = i7 % 2; str = null; } setStartIconContentDescription(str); } public void setStartIconTintList(ColorStateList colorStateList) { StartCompoundLayout startCompoundLayout = this.r; if (startCompoundLayout.i != colorStateList) { startCompoundLayout.i = colorStateList; C15977kAW.Mo_(startCompoundLayout.g, startCompoundLayout.f, colorStateList, startCompoundLayout.j); } } public void setStartIconTintMode(PorterDuff.Mode mode) { StartCompoundLayout startCompoundLayout = this.r; if (startCompoundLayout.j != mode) { startCompoundLayout.j = mode; C15977kAW.Mo_(startCompoundLayout.g, startCompoundLayout.f, startCompoundLayout.i, mode); } } public void setEndIconMode(int i) { this.h.a(i); } public void setEndIconOnClickListener(View.OnClickListener onClickListener) { EndCompoundLayout endCompoundLayout = this.h; CheckableImageButton checkableImageButton = endCompoundLayout.f6484o; View.OnLongClickListener onLongClickListener = endCompoundLayout.f; checkableImageButton.setOnClickListener(onClickListener); C15977kAW.Mr_(checkableImageButton, onLongClickListener); } public void setErrorIconOnClickListener(View.OnClickListener onClickListener) { EndCompoundLayout endCompoundLayout = this.h; CheckableImageButton checkableImageButton = endCompoundLayout.k; View.OnLongClickListener onLongClickListener = endCompoundLayout.n; checkableImageButton.setOnClickListener(onClickListener); C15977kAW.Mr_(checkableImageButton, onLongClickListener); } public void setEndIconOnLongClickListener(View.OnLongClickListener onLongClickListener) { EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.f = onLongClickListener; CheckableImageButton checkableImageButton = endCompoundLayout.f6484o; checkableImageButton.setOnLongClickListener(onLongClickListener); C15977kAW.Mr_(checkableImageButton, onLongClickListener); } public void setErrorIconOnLongClickListener(View.OnLongClickListener onLongClickListener) { EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.n = onLongClickListener; CheckableImageButton checkableImageButton = endCompoundLayout.k; checkableImageButton.setOnLongClickListener(onLongClickListener); C15977kAW.Mr_(checkableImageButton, onLongClickListener); } public void setEndIconVisible(boolean z) { this.h.e(z); } public void setEndIconActivated(boolean z) { this.h.f6484o.setActivated(z); } public void setEndIconCheckable(boolean z) { this.h.f6484o.setCheckable(z); } public void setEndIconDrawable(Drawable drawable) { this.h.Mh_(drawable); } public void setEndIconMinSize(int i) { this.h.b(i); } public void setStartIconScaleType(ImageView.ScaleType scaleType) { StartCompoundLayout startCompoundLayout = this.r; startCompoundLayout.d = scaleType; startCompoundLayout.f.setScaleType(scaleType); } public void setEndIconScaleType(ImageView.ScaleType scaleType) { EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.i = scaleType; endCompoundLayout.f6484o.setScaleType(scaleType); endCompoundLayout.k.setScaleType(scaleType); } public void setEndIconContentDescription(int i) { this.h.c(i); } public void setEndIconTintList(ColorStateList colorStateList) { EndCompoundLayout endCompoundLayout = this.h; if (endCompoundLayout.g != colorStateList) { endCompoundLayout.g = colorStateList; C15977kAW.Mo_(endCompoundLayout.s, endCompoundLayout.f6484o, colorStateList, endCompoundLayout.h); } } public void setEndIconTintMode(PorterDuff.Mode mode) { EndCompoundLayout endCompoundLayout = this.h; if (endCompoundLayout.h != mode) { endCompoundLayout.h = mode; C15977kAW.Mo_(endCompoundLayout.s, endCompoundLayout.f6484o, endCompoundLayout.g, mode); } } @Deprecated public void setPasswordVisibilityToggleDrawable(Drawable drawable) { this.h.f6484o.setImageDrawable(drawable); } @Deprecated public void setPasswordVisibilityToggleContentDescription(int i) { this.h.e(i); } @Deprecated public void setPasswordVisibilityToggleContentDescription(CharSequence charSequence) { this.h.f6484o.setContentDescription(charSequence); } @Deprecated public void setPasswordVisibilityToggleEnabled(boolean z) { EndCompoundLayout endCompoundLayout = this.h; if (z && endCompoundLayout.j != 1) { endCompoundLayout.a(1); } else { if (z) { return; } endCompoundLayout.a(0); } } @Deprecated public void setPasswordVisibilityToggleTintList(ColorStateList colorStateList) { EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.g = colorStateList; C15977kAW.Mo_(endCompoundLayout.s, endCompoundLayout.f6484o, colorStateList, endCompoundLayout.h); } @Deprecated public void setPasswordVisibilityToggleTintMode(PorterDuff.Mode mode) { EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.h = mode; C15977kAW.Mo_(endCompoundLayout.s, endCompoundLayout.f6484o, endCompoundLayout.g, mode); } public void setTextInputAccessibilityDelegate(IeS ieS) { EditText editText = this.f; if (editText != null) { ViewCompat.e(editText, ieS); } } /* JADX INFO: Access modifiers changed from: package-private */ public final boolean d() { boolean z; if (this.f == null) { return false; } boolean z2 = true; if (q()) { int measuredWidth = this.r.getMeasuredWidth() - this.f.getPaddingLeft(); if (this.as == null || this.av != measuredWidth) { ColorDrawable colorDrawable = new ColorDrawable(); this.as = colorDrawable; this.av = measuredWidth; colorDrawable.setBounds(0, 0, measuredWidth, 1); } Drawable[] vO_ = URz.vO_(this.f); Drawable drawable = vO_[0]; Drawable drawable2 = this.as; if (drawable != drawable2) { URz.vZ_(this.f, drawable2, vO_[1], vO_[2], vO_[3]); z = true; } z = false; } else { if (this.as != null) { Drawable[] vO_2 = URz.vO_(this.f); URz.vZ_(this.f, null, vO_2[1], vO_2[2], vO_2[3]); this.as = null; z = true; } z = false; } if (s()) { int measuredWidth2 = this.h.q.getMeasuredWidth() - this.f.getPaddingRight(); CheckableImageButton e = this.h.e(); if (e != null) { measuredWidth2 = measuredWidth2 + e.getMeasuredWidth() + CYM.ry_((ViewGroup.MarginLayoutParams) e.getLayoutParams()); } Drawable[] vO_3 = URz.vO_(this.f); Drawable drawable3 = this.O; if (drawable3 != null && this.Q != measuredWidth2) { this.Q = measuredWidth2; drawable3.setBounds(0, 0, measuredWidth2, 1); URz.vZ_(this.f, vO_3[0], vO_3[1], this.O, vO_3[3]); } else { if (drawable3 == null) { ColorDrawable colorDrawable2 = new ColorDrawable(); this.O = colorDrawable2; this.Q = measuredWidth2; colorDrawable2.setBounds(0, 0, measuredWidth2, 1); } Drawable drawable4 = vO_3[2]; Drawable drawable5 = this.O; if (drawable4 != drawable5) { this.ak = drawable4; URz.vZ_(this.f, vO_3[0], vO_3[1], drawable5, vO_3[3]); } else { z2 = z; } } } else { if (this.O == null) { return z; } Drawable[] vO_4 = URz.vO_(this.f); if (vO_4[2] == this.O) { URz.vZ_(this.f, vO_4[0], vO_4[1], this.ak, vO_4[3]); } else { z2 = z; } this.O = null; } return z2; } private boolean q() { return (this.r.f.getDrawable() != null || (this.r.b != null && this.r.a.getVisibility() == 0)) && this.r.getMeasuredWidth() > 0; } /* JADX WARN: Code restructure failed: missing block: B:10:0x0028, code lost: if (r2.h.t != null) goto L14; */ /* JADX WARN: Code restructure failed: missing block: B:8:0x0021, code lost: if (r0.f6484o.getVisibility() == 0) goto L14; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ private boolean s() { /* r2 = this; com.google.android.material.textfield.EndCompoundLayout r0 = r2.h com.google.android.material.internal.CheckableImageButton r0 = r0.k int r0 = r0.getVisibility() if (r0 != 0) goto Lb goto L2a Lb: com.google.android.material.textfield.EndCompoundLayout r0 = r2.h int r0 = r0.j if (r0 == 0) goto L24 com.google.android.material.textfield.EndCompoundLayout r0 = r2.h android.widget.FrameLayout r1 = r0.c int r1 = r1.getVisibility() if (r1 != 0) goto L24 com.google.android.material.internal.CheckableImageButton r0 = r0.f6484o int r0 = r0.getVisibility() if (r0 != 0) goto L24 goto L2a L24: com.google.android.material.textfield.EndCompoundLayout r0 = r2.h java.lang.CharSequence r0 = r0.t if (r0 == 0) goto L34 L2a: com.google.android.material.textfield.EndCompoundLayout r0 = r2.h int r0 = r0.getMeasuredWidth() if (r0 <= 0) goto L34 r0 = 1 goto L35 L34: r0 = 0 L35: return r0 */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.textfield.TextInputLayout.s():boolean"); } @Override // android.widget.LinearLayout, android.view.ViewGroup, android.view.View protected void onLayout(boolean z, int i, int i2, int i3, int i4) { int compoundPaddingTop; int compoundPaddingBottom; super.onLayout(z, i, i2, i3, i4); EditText editText = this.f; if (editText != null) { Rect rect = this.aA; rect.set(0, 0, editText.getWidth(), editText.getHeight()); CEQ.JT_(this, editText, rect); if (this.G != null) { this.G.setBounds(rect.left, rect.bottom - this.z, rect.right, rect.bottom); } if (this.H != null) { this.H.setBounds(rect.left, rect.bottom - this.E, rect.right, rect.bottom); } if (this.m) { lql lqlVar = this.e; float textSize = this.f.getTextSize(); if (lqlVar.f != textSize) { lqlVar.f = textSize; lqlVar.c(false); } int gravity = this.f.getGravity(); lql lqlVar2 = this.e; int i5 = (gravity & (-113)) | 48; if (lqlVar2.b != i5) { lqlVar2.b = i5; lqlVar2.c(false); } lql lqlVar3 = this.e; if (lqlVar3.i != gravity) { lqlVar3.i = gravity; lqlVar3.c(false); } lql lqlVar4 = this.e; if (this.f != null) { Rect rect2 = this.at; boolean z2 = ViewCompat.m(this) == 1; rect2.bottom = rect.bottom; int i6 = this.d; if (i6 == 1) { rect2.left = a(rect.left, z2); rect2.top = rect.top + this.A; rect2.right = d(rect.right, z2); } else if (i6 == 2) { rect2.left = rect.left + this.f.getPaddingLeft(); rect2.top = rect.top - g(); rect2.right = rect.right - this.f.getPaddingRight(); } else { rect2.left = a(rect.left, z2); rect2.top = getPaddingTop(); rect2.right = d(rect.right, z2); } lqlVar4.a(rect2.left, rect2.top, rect2.right, rect2.bottom); lql lqlVar5 = this.e; if (this.f == null) { throw new IllegalStateException(); } Rect rect3 = this.at; TextPaint textPaint = lqlVar5.z; textPaint.setTextSize(lqlVar5.f); textPaint.setTypeface(lqlVar5.f9209o); textPaint.setLetterSpacing(lqlVar5.g); float f = -lqlVar5.z.ascent(); rect3.left = rect.left + this.f.getCompoundPaddingLeft(); if (this.d == 1 && this.f.getMinLines() <= 1) { compoundPaddingTop = (int) (rect.centerY() - (f / 2.0f)); } else { compoundPaddingTop = rect.top + this.f.getCompoundPaddingTop(); } rect3.top = compoundPaddingTop; rect3.right = rect.right - this.f.getCompoundPaddingRight(); if (this.d == 1 && this.f.getMinLines() <= 1) { compoundPaddingBottom = (int) (rect3.top + f); } else { compoundPaddingBottom = rect.bottom - this.f.getCompoundPaddingBottom(); } rect3.bottom = compoundPaddingBottom; lqlVar5.c(rect3.left, rect3.top, rect3.right, rect3.bottom); this.e.c(false); if (!n() || this.l) { return; } l(); return; } throw new IllegalStateException(); } } } @Override // android.view.View public void draw(Canvas canvas) { C4363bXv c4363bXv; super.draw(canvas); if (this.m) { this.e.JN_(canvas); } if (this.H == null || (c4363bXv = this.G) == null) { return; } c4363bXv.draw(canvas); if (this.f.isFocused()) { Rect bounds = this.H.getBounds(); Rect bounds2 = this.G.getBounds(); float f = this.e.d; int centerX = bounds2.centerX(); bounds.left = Math.round((bounds2.left - centerX) * f) + centerX; bounds.right = centerX + Math.round(f * (bounds2.right - centerX)); this.H.draw(canvas); } } @Override // android.view.View protected void onConfigurationChanged(Configuration configuration) { super.onConfigurationChanged(configuration); this.e.JP_(configuration); } private void e(boolean z) { ValueAnimator valueAnimator = this.u; if (valueAnimator != null && valueAnimator.isRunning()) { this.u.cancel(); } if (z && this.aa) { d(1.0f); } else { this.e.d(1.0f); } this.l = false; if (n()) { l(); } EditText editText = this.f; if (this.k.MH_(editText == null ? null : editText.getText()) == 0 && !this.l) { e(); } else { c(); } StartCompoundLayout startCompoundLayout = this.r; startCompoundLayout.c = false; startCompoundLayout.d(); EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.r = false; endCompoundLayout.d(); } private boolean n() { return this.m && !TextUtils.isEmpty(this.j) && (this.w instanceof C16844rlF); } private void l() { if (n()) { RectF rectF = this.aB; this.e.JO_(rectF, this.f.getWidth(), this.f.getGravity()); if (rectF.width() <= BitmapDescriptorFactory.HUE_RED || rectF.height() <= BitmapDescriptorFactory.HUE_RED) { return; } rectF.left -= this.C; rectF.right += this.C; rectF.offset(-getPaddingLeft(), ((-getPaddingTop()) - (rectF.height() / 2.0f)) + this.I); ((C16844rlF) this.w).a(rectF.left, rectF.top, rectF.right, rectF.bottom); } } private void o() { if (!n() || this.l) { return; } if (n()) { ((C16844rlF) this.w).a(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED); } l(); } /* JADX WARN: Removed duplicated region for block: B:12:0x0026 */ /* JADX WARN: Removed duplicated region for block: B:20:0x003e */ @Override // android.view.ViewGroup, android.view.View /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ protected void drawableStateChanged() { /* r4 = this; boolean r0 = r4.ah if (r0 == 0) goto L5 return L5: r0 = 1 r4.ah = r0 super.drawableStateChanged() int[] r1 = r4.getDrawableState() o.lql r2 = r4.e r3 = 0 if (r2 == 0) goto L21 r2.w = r1 boolean r1 = r2.b() if (r1 == 0) goto L21 r2.c(r3) r1 = r0 goto L22 L21: r1 = r3 L22: android.widget.EditText r2 = r4.f if (r2 == 0) goto L36 boolean r2 = androidx.core.view.ViewCompat.G(r4) if (r2 == 0) goto L32 boolean r2 = r4.isEnabled() if (r2 != 0) goto L33 L32: r0 = r3 L33: r4.a(r0, r3) L36: r4.a() r4.j() if (r1 == 0) goto L41 r4.invalidate() L41: r4.ah = r3 return */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.textfield.TextInputLayout.drawableStateChanged():void"); } public final void j() { int i; TextView textView; EditText editText; EditText editText2; if (this.w == null || this.d == 0) { return; } boolean z = false; boolean z2 = isFocused() || ((editText2 = this.f) != null && editText2.hasFocus()); boolean z3 = isHovered() || ((editText = this.f) != null && editText.isHovered()); if (this.f6485o.c() || (this.i != null && this.a)) { z = true; } if (!isEnabled()) { this.B = this.S; } else if (!this.f6485o.c()) { if (!this.a || (textView = this.i) == null) { i = z2 ? this.W : z3 ? this.af : this.P; } else if (this.au != null) { c(z2, z3); } else { i = textView.getCurrentTextColor(); } this.B = i; } else if (this.au != null) { c(z2, z3); } else { TextView textView2 = this.f6485o.h; this.B = textView2 != null ? textView2.getCurrentTextColor() : -1; } if (Build.VERSION.SDK_INT >= 29) { c(z); } this.h.c(); StartCompoundLayout startCompoundLayout = this.r; C15977kAW.Mq_(startCompoundLayout.g, startCompoundLayout.f, startCompoundLayout.i); if (this.d == 2) { int i2 = this.I; this.I = (z2 && isEnabled()) ? this.E : this.z; if (this.I != i2) { o(); } } if (this.d == 1) { this.D = !isEnabled() ? this.R : (!z3 || z2) ? z2 ? this.T : this.N : this.ac; } h(); } private void c(boolean z, boolean z2) { int defaultColor = this.au.getDefaultColor(); int colorForState = this.au.getColorForState(new int[]{R.attr.state_hovered, R.attr.state_enabled}, defaultColor); int colorForState2 = this.au.getColorForState(new int[]{R.attr.state_activated, R.attr.state_enabled}, defaultColor); if (z) { this.B = colorForState2; } else if (z2) { this.B = colorForState; } else { this.B = defaultColor; } } private void c(boolean z) { Context context = getContext(); int i = C17052tZT.IeS.colorControlActivated; TypedValue typedValue = new TypedValue(); ColorStateList colorStateList = null; if (!context.getTheme().resolveAttribute(i, typedValue, true)) { typedValue = null; } if (typedValue != null) { if (typedValue.resourceId != 0) { colorStateList = nMh.getColorStateList(context, typedValue.resourceId); } else if (typedValue.data != 0) { colorStateList = ColorStateList.valueOf(typedValue.data); } } EditText editText = this.f; if (editText == null || editText.getTextCursorDrawable() == null || colorStateList == null) { return; } Drawable textCursorDrawable = this.f.getTextCursorDrawable(); if (z && (colorStateList = this.au) == null) { colorStateList = ColorStateList.valueOf(this.B); } Tlu.pF_(textCursorDrawable, colorStateList); } private void a(boolean z) { ValueAnimator valueAnimator = this.u; if (valueAnimator != null && valueAnimator.isRunning()) { this.u.cancel(); } if (z && this.aa) { d(BitmapDescriptorFactory.HUE_RED); } else { this.e.d(BitmapDescriptorFactory.HUE_RED); } if (n() && (!((C16844rlF) this.w).a.u.isEmpty()) && n()) { ((C16844rlF) this.w).a(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED); } this.l = true; c(); StartCompoundLayout startCompoundLayout = this.r; startCompoundLayout.c = true; startCompoundLayout.d(); EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.r = true; endCompoundLayout.d(); } /* loaded from: classes2.dex */ public static class IeS extends yZt { private final TextInputLayout e; public IeS(TextInputLayout textInputLayout) { this.e = textInputLayout; } @Override // o.yZt public void onInitializeAccessibilityNodeInfo(View view, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) { TextView textView; super.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfoCompat); EditText editText = this.e.f; CharSequence charSequence = null; CharSequence text = editText != null ? editText.getText() : null; TextInputLayout textInputLayout = this.e; CharSequence charSequence2 = textInputLayout.m ? textInputLayout.j : null; TextInputLayout textInputLayout2 = this.e; CharSequence charSequence3 = textInputLayout2.f6485o.c ? textInputLayout2.f6485o.g : null; TextInputLayout textInputLayout3 = this.e; CharSequence charSequence4 = textInputLayout3.q ? textInputLayout3.p : null; int i = this.e.b; TextInputLayout textInputLayout4 = this.e; if (textInputLayout4.c && textInputLayout4.a && (textView = textInputLayout4.i) != null) { charSequence = textView.getContentDescription(); } boolean isEmpty = TextUtils.isEmpty(text); boolean isEmpty2 = TextUtils.isEmpty(charSequence2); boolean z = this.e.l; boolean z2 = !TextUtils.isEmpty(charSequence3); boolean z3 = z2 || !TextUtils.isEmpty(charSequence); String obj = isEmpty2 ^ true ? charSequence2.toString() : ""; StartCompoundLayout startCompoundLayout = this.e.r; if (startCompoundLayout.a.getVisibility() == 0) { accessibilityNodeInfoCompat.a(startCompoundLayout.a); accessibilityNodeInfoCompat.c(startCompoundLayout.a); } else { accessibilityNodeInfoCompat.c(startCompoundLayout.f); } if (!isEmpty) { accessibilityNodeInfoCompat.g(text); } else if (!TextUtils.isEmpty(obj)) { accessibilityNodeInfoCompat.g(obj); if ((!z) && charSequence4 != null) { StringBuilder sb = new StringBuilder(); sb.append(obj); sb.append(", "); sb.append((Object) charSequence4); accessibilityNodeInfoCompat.g(sb.toString()); } } else if (charSequence4 != null) { accessibilityNodeInfoCompat.g(charSequence4); } if (!TextUtils.isEmpty(obj)) { accessibilityNodeInfoCompat.a((CharSequence) obj); accessibilityNodeInfoCompat.k(isEmpty); } if (text == null || text.length() != i) { i = -1; } accessibilityNodeInfoCompat.a(i); if (z3) { if (!z2) { charSequence3 = charSequence; } accessibilityNodeInfoCompat.c(charSequence3); } View view2 = this.e.f6485o.f8444o; if (view2 != null) { accessibilityNodeInfoCompat.a(view2); } EndCompoundLayout endCompoundLayout = this.e.h; endCompoundLayout.a.d(endCompoundLayout.j).a(accessibilityNodeInfoCompat); } @Override // o.yZt public void onPopulateAccessibilityEvent(View view, AccessibilityEvent accessibilityEvent) { super.onPopulateAccessibilityEvent(view, accessibilityEvent); EndCompoundLayout endCompoundLayout = this.e.h; endCompoundLayout.a.d(endCompoundLayout.j).Mn_(accessibilityEvent); } } private void d(float f) { if (this.e.d == f) { return; } if (this.u == null) { ValueAnimator valueAnimator = new ValueAnimator(); this.u = valueAnimator; valueAnimator.setInterpolator(DAZ.Kh_(getContext(), C17052tZT.IeS.motionEasingEmphasizedInterpolator, C6217cMa.d)); this.u.setDuration(DAZ.a(getContext(), C17052tZT.IeS.motionDurationMedium4, CipherSuite.TLS_DH_anon_WITH_AES_256_GCM_SHA384)); this.u.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this) { // from class: com.google.android.material.textfield.TextInputLayout.4 private TextInputLayout c; { this.c = this; } @Override // android.animation.ValueAnimator.AnimatorUpdateListener public final void onAnimationUpdate(ValueAnimator valueAnimator2) { this.c.e.d(((Float) valueAnimator2.getAnimatedValue()).floatValue()); } }); } this.u.setFloatValues(this.e.d, f); this.u.start(); } public void setError(CharSequence charSequence) { if (!this.f6485o.c) { if (TextUtils.isEmpty(charSequence)) { return; } else { setErrorEnabled(true); } } if (TextUtils.isEmpty(charSequence)) { this.f6485o.a(); return; } XRC xrc = this.f6485o; Animator animator = xrc.e; if (animator != null) { animator.cancel(); } xrc.g = charSequence; xrc.h.setText(charSequence); int i = xrc.d; if (i != 1) { xrc.a = 1; } xrc.e(i, xrc.a, xrc.Mt_(xrc.h, charSequence)); } public void setBoxCornerRadii(float f, float f2, float f3, float f4) { byte b = 0; boolean z = ViewCompat.m(this) == 1; this.v = z; float f5 = z ? f2 : f; if (!z) { f = f2; } float f6 = z ? f4 : f3; if (!z) { f3 = f4; } C4363bXv c4363bXv = this.w; if (c4363bXv != null && c4363bXv.h() == f5 && this.w.j() == f && this.w.b() == f6 && this.w.e() == f3) { return; } FLD.RVV rvv = new FLD.RVV(this.aw); rvv.f = new C17525xWe(f5); rvv.k = new C17525xWe(f); rvv.e = new C17525xWe(f6); rvv.d = new C17525xWe(f3); this.aw = new FLD(rvv, b); h(); } public void setPrefixText(CharSequence charSequence) { StartCompoundLayout startCompoundLayout = this.r; startCompoundLayout.b = TextUtils.isEmpty(charSequence) ? null : charSequence; startCompoundLayout.a.setText(charSequence); startCompoundLayout.d(); } public void setStartIconContentDescription(CharSequence charSequence) { StartCompoundLayout startCompoundLayout = this.r; if (startCompoundLayout.f.getContentDescription() != charSequence) { startCompoundLayout.f.setContentDescription(charSequence); } } public void setErrorIconDrawable(int i) { EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.Mi_(i != 0 ? AgY.dT_(endCompoundLayout.getContext(), i) : null); C15977kAW.Mq_(endCompoundLayout.s, endCompoundLayout.k, endCompoundLayout.l); } public void setEndIconDrawable(int i) { EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.Mh_(i != 0 ? AgY.dT_(endCompoundLayout.getContext(), i) : null); } public void setEndIconContentDescription(CharSequence charSequence) { EndCompoundLayout endCompoundLayout = this.h; if (endCompoundLayout.f6484o.getContentDescription() != charSequence) { endCompoundLayout.f6484o.setContentDescription(charSequence); } } public void setTypeface(Typeface typeface) { if (typeface != this.ay) { this.ay = typeface; lql lqlVar = this.e; boolean JL_ = lqlVar.JL_(typeface); boolean JM_ = lqlVar.JM_(typeface); if (JL_ || JM_) { lqlVar.c(false); } XRC xrc = this.f6485o; if (typeface != xrc.r) { xrc.r = typeface; TextView textView = xrc.h; if (textView != null) { textView.setTypeface(typeface); } TextView textView2 = xrc.f8444o; if (textView2 != null) { textView2.setTypeface(typeface); } } TextView textView3 = this.i; if (textView3 != null) { textView3.setTypeface(typeface); } } } public void setSuffixText(CharSequence charSequence) { EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.t = TextUtils.isEmpty(charSequence) ? null : charSequence; endCompoundLayout.q.setText(charSequence); endCompoundLayout.d(); } @Deprecated public void setPasswordVisibilityToggleDrawable(int i) { EndCompoundLayout endCompoundLayout = this.h; endCompoundLayout.f6484o.setImageDrawable(i != 0 ? AgY.dT_(endCompoundLayout.getContext(), i) : null); } public void setBoxCornerFamily(int i) { FLD.RVV rvv = new FLD.RVV(this.aw); kdE kde = this.aw.n; Spl c = SZt.c(i); rvv.i = c; float a = FLD.RVV.a(c); if (a != -1.0f) { rvv.f = new C17525xWe(a); } rvv.f = kde; kdE kde2 = this.aw.k; Spl c2 = SZt.c(i); rvv.f8158o = c2; float a2 = FLD.RVV.a(c2); if (a2 != -1.0f) { rvv.k = new C17525xWe(a2); } rvv.k = kde2; kdE kde3 = this.aw.b; Spl c3 = SZt.c(i); rvv.a = c3; float a3 = FLD.RVV.a(c3); if (a3 != -1.0f) { rvv.e = new C17525xWe(a3); } rvv.e = kde3; kdE kde4 = this.aw.j; Spl c4 = SZt.c(i); rvv.b = c4; float a4 = FLD.RVV.a(c4); if (a4 != -1.0f) { rvv.d = new C17525xWe(a4); } rvv.d = kde4; this.aw = new FLD(rvv, (byte) 0); h(); } public void setDefaultHintTextColor(ColorStateList colorStateList) { this.L = colorStateList; this.ab = colorStateList; if (this.f != null) { a(false, false); } } public void setExpandedHintEnabled(boolean z) { if (this.V != z) { this.V = z; a(false, false); } } static void i() { ax = (byte) 6; } public void setLengthCounter(RVV rvv) { this.k = rvv; } public void setHintAnimationEnabled(boolean z) { this.aa = z; } public void setBoxCollapsedPaddingTop(int i) { this.A = i; } }