You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

248 lines
7.4 KiB

package p028j;
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 p007c.C0485a;
import p013e.C0640a;
import p023h0.InterfaceC0808e1;
import p032k0.C1304j0;
import p032k0.InterfaceC1285b1;
import p032k0.InterfaceC1349z0;
/* renamed from: j.g */
/* loaded from: classes.dex */
public class C1102g extends CheckedTextView implements InterfaceC1349z0, InterfaceC0808e1, InterfaceC1285b1 {
/* renamed from: d */
public final C1107h f2696d;
/* renamed from: e */
public final C1080d f2697e;
/* renamed from: f */
public final C1082d1 f2698f;
/* renamed from: g */
public C1144m f2699g;
public C1102g(Context context, AttributeSet attributeSet) {
this(context, attributeSet, C0485a.checkedTextViewStyle);
}
public C1102g(Context context, AttributeSet attributeSet, int i) {
super(C1091d3.m2198b(context), attributeSet, i);
C1073b3.m2264a(this, getContext());
C1082d1 c1082d1 = new C1082d1(this);
this.f2698f = c1082d1;
c1082d1.m2225m(attributeSet, i);
c1082d1.m2236b();
C1080d c1080d = new C1080d(this);
this.f2697e = c1080d;
c1080d.m2248e(attributeSet, i);
C1107h c1107h = new C1107h(this);
this.f2696d = c1107h;
c1107h.m2155d(attributeSet, i);
getEmojiTextViewHelper().m2042b(attributeSet, i);
}
private C1144m getEmojiTextViewHelper() {
if (this.f2699g == null) {
this.f2699g = new C1144m(this);
}
return this.f2699g;
}
@Override // android.widget.CheckedTextView, android.widget.TextView, android.view.View
public void drawableStateChanged() {
super.drawableStateChanged();
C1082d1 c1082d1 = this.f2698f;
if (c1082d1 != null) {
c1082d1.m2236b();
}
C1080d c1080d = this.f2697e;
if (c1080d != null) {
c1080d.m2251b();
}
C1107h c1107h = this.f2696d;
if (c1107h != null) {
c1107h.m2158a();
}
}
@Override // android.widget.TextView
public ActionMode.Callback getCustomSelectionActionModeCallback() {
return C1304j0.m1668m(super.getCustomSelectionActionModeCallback());
}
@Override // p023h0.InterfaceC0808e1
public ColorStateList getSupportBackgroundTintList() {
C1080d c1080d = this.f2697e;
if (c1080d != null) {
return c1080d.m2250c();
}
return null;
}
@Override // p023h0.InterfaceC0808e1
public PorterDuff.Mode getSupportBackgroundTintMode() {
C1080d c1080d = this.f2697e;
if (c1080d != null) {
return c1080d.m2249d();
}
return null;
}
public ColorStateList getSupportCheckMarkTintList() {
C1107h c1107h = this.f2696d;
if (c1107h != null) {
return c1107h.m2157b();
}
return null;
}
public PorterDuff.Mode getSupportCheckMarkTintMode() {
C1107h c1107h = this.f2696d;
if (c1107h != null) {
return c1107h.m2156c();
}
return null;
}
public ColorStateList getSupportCompoundDrawablesTintList() {
return this.f2698f.m2228j();
}
public PorterDuff.Mode getSupportCompoundDrawablesTintMode() {
return this.f2698f.m2227k();
}
@Override // android.widget.TextView, android.view.View
public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
return C1158n.m2004a(super.onCreateInputConnection(editorInfo), editorInfo, this);
}
@Override // android.widget.TextView
public void setAllCaps(boolean z) {
super.setAllCaps(z);
getEmojiTextViewHelper().m2041c(z);
}
@Override // android.view.View
public void setBackgroundDrawable(Drawable drawable) {
super.setBackgroundDrawable(drawable);
C1080d c1080d = this.f2697e;
if (c1080d != null) {
c1080d.m2247f(drawable);
}
}
@Override // android.view.View
public void setBackgroundResource(int i) {
super.setBackgroundResource(i);
C1080d c1080d = this.f2697e;
if (c1080d != null) {
c1080d.m2246g(i);
}
}
@Override // android.widget.CheckedTextView
public void setCheckMarkDrawable(int i) {
setCheckMarkDrawable(C0640a.m3229b(getContext(), i));
}
@Override // android.widget.CheckedTextView
public void setCheckMarkDrawable(Drawable drawable) {
super.setCheckMarkDrawable(drawable);
C1107h c1107h = this.f2696d;
if (c1107h != null) {
c1107h.m2154e();
}
}
@Override // android.widget.TextView
public void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
C1082d1 c1082d1 = this.f2698f;
if (c1082d1 != null) {
c1082d1.m2222p();
}
}
@Override // android.widget.TextView
public void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4);
C1082d1 c1082d1 = this.f2698f;
if (c1082d1 != null) {
c1082d1.m2222p();
}
}
@Override // android.widget.TextView
public void setCustomSelectionActionModeCallback(ActionMode.Callback callback) {
super.setCustomSelectionActionModeCallback(C1304j0.m1667n(this, callback));
}
public void setEmojiCompatEnabled(boolean z) {
getEmojiTextViewHelper().m2040d(z);
}
@Override // p023h0.InterfaceC0808e1
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
C1080d c1080d = this.f2697e;
if (c1080d != null) {
c1080d.m2244i(colorStateList);
}
}
@Override // p023h0.InterfaceC0808e1
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
C1080d c1080d = this.f2697e;
if (c1080d != null) {
c1080d.m2243j(mode);
}
}
@Override // p032k0.InterfaceC1349z0
public void setSupportCheckMarkTintList(ColorStateList colorStateList) {
C1107h c1107h = this.f2696d;
if (c1107h != null) {
c1107h.m2153f(colorStateList);
}
}
@Override // p032k0.InterfaceC1349z0
public void setSupportCheckMarkTintMode(PorterDuff.Mode mode) {
C1107h c1107h = this.f2696d;
if (c1107h != null) {
c1107h.m2152g(mode);
}
}
@Override // p032k0.InterfaceC1285b1
public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
this.f2698f.m2215w(colorStateList);
this.f2698f.m2236b();
}
@Override // p032k0.InterfaceC1285b1
public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
this.f2698f.m2214x(mode);
this.f2698f.m2236b();
}
@Override // android.widget.TextView
public void setTextAppearance(Context context, int i) {
super.setTextAppearance(context, i);
C1082d1 c1082d1 = this.f2698f;
if (c1082d1 != null) {
c1082d1.m2221q(context, i);
}
}
}