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.

152 lines
5.2 KiB

package p028j;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.CheckedTextView;
import p001a0.C0012f;
import p007c.C0494j;
import p013e.C0640a;
import p023h0.C0829h1;
import p032k0.C1281b;
/* renamed from: j.h */
/* loaded from: classes.dex */
public class C1107h {
/* renamed from: a */
public final CheckedTextView f2703a;
/* renamed from: b */
public ColorStateList f2704b = null;
/* renamed from: c */
public PorterDuff.Mode f2705c = null;
/* renamed from: d */
public boolean f2706d = false;
/* renamed from: e */
public boolean f2707e = false;
/* renamed from: f */
public boolean f2708f;
public C1107h(CheckedTextView checkedTextView) {
this.f2703a = checkedTextView;
}
/* renamed from: a */
public void m2158a() {
Drawable m1709a = C1281b.m1709a(this.f2703a);
if (m1709a != null) {
if (this.f2706d || this.f2707e) {
Drawable mutate = C0012f.m5083p(m1709a).mutate();
if (this.f2706d) {
C0012f.m5085n(mutate, this.f2704b);
}
if (this.f2707e) {
C0012f.m5084o(mutate, this.f2705c);
}
if (mutate.isStateful()) {
mutate.setState(this.f2703a.getDrawableState());
}
this.f2703a.setCheckMarkDrawable(mutate);
}
}
}
/* renamed from: b */
public ColorStateList m2157b() {
return this.f2704b;
}
/* renamed from: c */
public PorterDuff.Mode m2156c() {
return this.f2705c;
}
/* JADX WARN: Removed duplicated region for block: B:12:0x003e A[Catch: all -> 0x0085, TRY_ENTER, TryCatch #1 {all -> 0x0085, blocks: (B:3:0x001d, B:5:0x0025, B:7:0x002b, B:12:0x003e, B:14:0x0046, B:16:0x004c, B:17:0x0059, B:19:0x0061, B:20:0x006a, B:22:0x0072), top: B:30:0x001d }] */
/* JADX WARN: Removed duplicated region for block: B:19:0x0061 A[Catch: all -> 0x0085, TryCatch #1 {all -> 0x0085, blocks: (B:3:0x001d, B:5:0x0025, B:7:0x002b, B:12:0x003e, B:14:0x0046, B:16:0x004c, B:17:0x0059, B:19:0x0061, B:20:0x006a, B:22:0x0072), top: B:30:0x001d }] */
/* JADX WARN: Removed duplicated region for block: B:22:0x0072 A[Catch: all -> 0x0085, TRY_LEAVE, TryCatch #1 {all -> 0x0085, blocks: (B:3:0x001d, B:5:0x0025, B:7:0x002b, B:12:0x003e, B:14:0x0046, B:16:0x004c, B:17:0x0059, B:19:0x0061, B:20:0x006a, B:22:0x0072), top: B:30:0x001d }] */
/* renamed from: d */
/*
Code decompiled incorrectly, please refer to instructions dump.
*/
public void m2155d(AttributeSet attributeSet, int i) {
boolean z;
int i2;
int i3;
int m2168m;
int m2168m2;
Context context = this.f2703a.getContext();
int[] iArr = C0494j.f1758P0;
C1106g3 m2160u = C1106g3.m2160u(context, attributeSet, iArr, i, 0);
CheckedTextView checkedTextView = this.f2703a;
C0829h1.m2850M(checkedTextView, checkedTextView.getContext(), iArr, attributeSet, m2160u.m2164q(), i, 0);
try {
int i4 = C0494j.f1766R0;
if (m2160u.m2163r(i4) && (m2168m2 = m2160u.m2168m(i4, 0)) != 0) {
try {
CheckedTextView checkedTextView2 = this.f2703a;
checkedTextView2.setCheckMarkDrawable(C0640a.m3229b(checkedTextView2.getContext(), m2168m2));
z = true;
} catch (Resources.NotFoundException unused) {
}
if (!z) {
int i5 = C0494j.f1762Q0;
if (m2160u.m2163r(i5) && (m2168m = m2160u.m2168m(i5, 0)) != 0) {
CheckedTextView checkedTextView3 = this.f2703a;
checkedTextView3.setCheckMarkDrawable(C0640a.m3229b(checkedTextView3.getContext(), m2168m));
}
}
i2 = C0494j.f1770S0;
if (m2160u.m2163r(i2)) {
C1281b.m1708b(this.f2703a, m2160u.m2178c(i2));
}
i3 = C0494j.f1774T0;
if (m2160u.m2163r(i3)) {
C1281b.m1707c(this.f2703a, C1115i2.m2115d(m2160u.m2171j(i3, -1), null));
}
}
z = false;
if (!z) {
}
i2 = C0494j.f1770S0;
if (m2160u.m2163r(i2)) {
}
i3 = C0494j.f1774T0;
if (m2160u.m2163r(i3)) {
}
} finally {
m2160u.m2159v();
}
}
/* renamed from: e */
public void m2154e() {
if (this.f2708f) {
this.f2708f = false;
return;
}
this.f2708f = true;
m2158a();
}
/* renamed from: f */
public void m2153f(ColorStateList colorStateList) {
this.f2704b = colorStateList;
this.f2706d = true;
m2158a();
}
/* renamed from: g */
public void m2152g(PorterDuff.Mode mode) {
this.f2705c = mode;
this.f2707e = true;
m2158a();
}
}