what-the-bank/sources/androidx/appcompat/widget/AppCompatRadioButton.java

191 lines
5.3 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package androidx.appcompat.widget;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.text.InputFilter;
import android.util.AttributeSet;
import android.widget.RadioButton;
import o.AgY;
import o.C8590dPx;
import o.InterfaceC16529pAK;
import o.SYO;
import o.WpN;
import o.WvB;
import o.Yoi;
import o.ZzE;
import o.nKv;
/* loaded from: classes.dex */
public class AppCompatRadioButton extends RadioButton implements InterfaceC16529pAK {
private final Yoi a;
private WvB b;
private final WpN c;
private final C8590dPx e;
public AppCompatRadioButton(Context context) {
this(context, null);
}
public AppCompatRadioButton(Context context, AttributeSet attributeSet) {
this(context, attributeSet, SYO.IeS.radioButtonStyle);
}
public AppCompatRadioButton(Context context, AttributeSet attributeSet, int i) {
super(ZzE.b(context), attributeSet, i);
nKv.b(getContext());
C8590dPx c8590dPx = new C8590dPx(this);
this.e = c8590dPx;
c8590dPx.fI_(attributeSet, i);
WpN wpN = new WpN(this);
this.c = wpN;
wpN.fy_(attributeSet, i);
Yoi yoi = new Yoi(this);
this.a = yoi;
yoi.he_(attributeSet, i);
d().gm_(attributeSet, i);
}
private WvB d() {
if (this.b == null) {
this.b = new WvB(this);
}
return this.b;
}
@Override // android.widget.CompoundButton
public void setButtonDrawable(Drawable drawable) {
super.setButtonDrawable(drawable);
C8590dPx c8590dPx = this.e;
if (c8590dPx != null) {
c8590dPx.b();
}
}
@Override // android.widget.CompoundButton
public void setButtonDrawable(int i) {
setButtonDrawable(AgY.dT_(getContext(), i));
}
@Override // android.widget.CompoundButton, android.widget.TextView
public int getCompoundPaddingLeft() {
int compoundPaddingLeft = super.getCompoundPaddingLeft();
C8590dPx c8590dPx = this.e;
return c8590dPx != null ? c8590dPx.a(compoundPaddingLeft) : compoundPaddingLeft;
}
@Override // o.InterfaceC16529pAK
public void setSupportButtonTintList(ColorStateList colorStateList) {
C8590dPx c8590dPx = this.e;
if (c8590dPx != null) {
c8590dPx.fJ_(colorStateList);
}
}
@Override // o.InterfaceC16529pAK
public ColorStateList wI_() {
C8590dPx c8590dPx = this.e;
if (c8590dPx != null) {
return c8590dPx.fH_();
}
return null;
}
@Override // o.InterfaceC16529pAK
public void setSupportButtonTintMode(PorterDuff.Mode mode) {
C8590dPx c8590dPx = this.e;
if (c8590dPx != null) {
c8590dPx.fK_(mode);
}
}
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
WpN wpN = this.c;
if (wpN != null) {
wpN.fB_(colorStateList);
}
}
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
WpN wpN = this.c;
if (wpN != null) {
wpN.fC_(mode);
}
}
@Override // android.view.View
public void setBackgroundDrawable(Drawable drawable) {
super.setBackgroundDrawable(drawable);
WpN wpN = this.c;
if (wpN != null) {
wpN.fz_(drawable);
}
}
@Override // android.view.View
public void setBackgroundResource(int i) {
super.setBackgroundResource(i);
WpN wpN = this.c;
if (wpN != null) {
wpN.c(i);
}
}
@Override // android.widget.CompoundButton, android.widget.TextView, android.view.View
protected void drawableStateChanged() {
super.drawableStateChanged();
WpN wpN = this.c;
if (wpN != null) {
wpN.a();
}
Yoi yoi = this.a;
if (yoi != null) {
yoi.a();
}
}
@Override // android.widget.TextView
public void setFilters(InputFilter[] inputFilterArr) {
super.setFilters(d().gl_(inputFilterArr));
}
@Override // android.widget.TextView
public void setAllCaps(boolean z) {
super.setAllCaps(z);
d().e(z);
}
public void setEmojiCompatEnabled(boolean z) {
d().a(z);
}
@Override // android.widget.TextView
public void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
Yoi yoi = this.a;
if (yoi != null) {
yoi.l();
}
}
@Override // android.widget.TextView
public void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4);
Yoi yoi = this.a;
if (yoi != null) {
yoi.l();
}
}
public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
this.a.hh_(colorStateList);
this.a.a();
}
public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
this.a.hi_(mode);
this.a.a();
}
}