200 lines
5.5 KiB
Java
200 lines
5.5 KiB
Java
|
package androidx.appcompat.widget;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.content.res.ColorStateList;
|
||
|
import android.graphics.PorterDuff;
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
import android.util.AttributeSet;
|
||
|
import android.view.ActionMode;
|
||
|
import android.view.inputmethod.EditorInfo;
|
||
|
import android.view.inputmethod.InputConnection;
|
||
|
import android.widget.CheckedTextView;
|
||
|
import o.AgY;
|
||
|
import o.Opp;
|
||
|
import o.SYO;
|
||
|
import o.URz;
|
||
|
import o.WpN;
|
||
|
import o.WvB;
|
||
|
import o.Yoi;
|
||
|
import o.ZzE;
|
||
|
import o.jzk;
|
||
|
import o.nKv;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class AppCompatCheckedTextView extends CheckedTextView {
|
||
|
private final Yoi a;
|
||
|
private final jzk c;
|
||
|
private WvB d;
|
||
|
private final WpN e;
|
||
|
|
||
|
public AppCompatCheckedTextView(Context context) {
|
||
|
this(context, null);
|
||
|
}
|
||
|
|
||
|
public AppCompatCheckedTextView(Context context, AttributeSet attributeSet) {
|
||
|
this(context, attributeSet, SYO.IeS.checkedTextViewStyle);
|
||
|
}
|
||
|
|
||
|
public AppCompatCheckedTextView(Context context, AttributeSet attributeSet, int i) {
|
||
|
super(ZzE.b(context), attributeSet, i);
|
||
|
nKv.b(getContext());
|
||
|
Yoi yoi = new Yoi(this);
|
||
|
this.a = yoi;
|
||
|
yoi.he_(attributeSet, i);
|
||
|
yoi.a();
|
||
|
WpN wpN = new WpN(this);
|
||
|
this.e = wpN;
|
||
|
wpN.fy_(attributeSet, i);
|
||
|
jzk jzkVar = new jzk(this);
|
||
|
this.c = jzkVar;
|
||
|
jzkVar.fE_(attributeSet, i);
|
||
|
b().gm_(attributeSet, i);
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.CheckedTextView
|
||
|
public void setCheckMarkDrawable(Drawable drawable) {
|
||
|
super.setCheckMarkDrawable(drawable);
|
||
|
jzk jzkVar = this.c;
|
||
|
if (jzkVar != null) {
|
||
|
jzkVar.d();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.CheckedTextView
|
||
|
public void setCheckMarkDrawable(int i) {
|
||
|
setCheckMarkDrawable(AgY.dT_(getContext(), i));
|
||
|
}
|
||
|
|
||
|
public void setSupportCheckMarkTintList(ColorStateList colorStateList) {
|
||
|
jzk jzkVar = this.c;
|
||
|
if (jzkVar != null) {
|
||
|
jzkVar.fF_(colorStateList);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setSupportCheckMarkTintMode(PorterDuff.Mode mode) {
|
||
|
jzk jzkVar = this.c;
|
||
|
if (jzkVar != null) {
|
||
|
jzkVar.fG_(mode);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
|
||
|
WpN wpN = this.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.fB_(colorStateList);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
|
||
|
WpN wpN = this.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.fC_(mode);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.view.View
|
||
|
public void setBackgroundDrawable(Drawable drawable) {
|
||
|
super.setBackgroundDrawable(drawable);
|
||
|
WpN wpN = this.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.fz_(drawable);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.view.View
|
||
|
public void setBackgroundResource(int i) {
|
||
|
super.setBackgroundResource(i);
|
||
|
WpN wpN = this.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.c(i);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.TextView
|
||
|
public void setTextAppearance(Context context, int i) {
|
||
|
super.setTextAppearance(context, i);
|
||
|
Yoi yoi = this.a;
|
||
|
if (yoi != null) {
|
||
|
yoi.d(context, i);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.CheckedTextView, android.widget.TextView, android.view.View
|
||
|
protected void drawableStateChanged() {
|
||
|
super.drawableStateChanged();
|
||
|
Yoi yoi = this.a;
|
||
|
if (yoi != null) {
|
||
|
yoi.a();
|
||
|
}
|
||
|
WpN wpN = this.e;
|
||
|
if (wpN != null) {
|
||
|
wpN.a();
|
||
|
}
|
||
|
jzk jzkVar = this.c;
|
||
|
if (jzkVar != null) {
|
||
|
jzkVar.c();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.TextView, android.view.View
|
||
|
public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
|
||
|
return Opp.go_(super.onCreateInputConnection(editorInfo), editorInfo, this);
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.TextView
|
||
|
public void setCustomSelectionActionModeCallback(ActionMode.Callback callback) {
|
||
|
super.setCustomSelectionActionModeCallback(URz.wh_(this, callback));
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.TextView
|
||
|
public ActionMode.Callback getCustomSelectionActionModeCallback() {
|
||
|
return URz.wg_(super.getCustomSelectionActionModeCallback());
|
||
|
}
|
||
|
|
||
|
private WvB b() {
|
||
|
if (this.d == null) {
|
||
|
this.d = new WvB(this);
|
||
|
}
|
||
|
return this.d;
|
||
|
}
|
||
|
|
||
|
@Override // android.widget.TextView
|
||
|
public void setAllCaps(boolean z) {
|
||
|
super.setAllCaps(z);
|
||
|
b().e(z);
|
||
|
}
|
||
|
|
||
|
public void setEmojiCompatEnabled(boolean z) {
|
||
|
b().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();
|
||
|
}
|
||
|
}
|