146 lines
7.2 KiB
Java
146 lines
7.2 KiB
Java
|
package o;
|
||
|
|
||
|
import android.content.res.ColorStateList;
|
||
|
import android.graphics.PorterDuff;
|
||
|
import android.graphics.drawable.Drawable;
|
||
|
import android.widget.CheckedTextView;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class jzk {
|
||
|
private boolean c;
|
||
|
private final CheckedTextView j;
|
||
|
private ColorStateList a = null;
|
||
|
private PorterDuff.Mode b = null;
|
||
|
private boolean d = false;
|
||
|
private boolean e = false;
|
||
|
|
||
|
public jzk(CheckedTextView checkedTextView) {
|
||
|
this.j = checkedTextView;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Removed duplicated region for block: B:11:0x006f A[Catch: all -> 0x009d, TryCatch #0 {all -> 0x009d, blocks: (B:3:0x0022, B:5:0x002c, B:8:0x0036, B:9:0x0065, B:11:0x006f, B:12:0x007a, B:14:0x0084, B:21:0x0044, B:23:0x004e, B:25:0x0058), top: B:2:0x0022 }] */
|
||
|
/* JADX WARN: Removed duplicated region for block: B:14:0x0084 A[Catch: all -> 0x009d, TRY_LEAVE, TryCatch #0 {all -> 0x009d, blocks: (B:3:0x0022, B:5:0x002c, B:8:0x0036, B:9:0x0065, B:11:0x006f, B:12:0x007a, B:14:0x0084, B:21:0x0044, B:23:0x004e, B:25:0x0058), top: B:2:0x0022 }] */
|
||
|
/*
|
||
|
Code decompiled incorrectly, please refer to instructions dump.
|
||
|
To view partially-correct add '--show-bad-code' argument
|
||
|
*/
|
||
|
public void fE_(android.util.AttributeSet r12, int r13) {
|
||
|
/*
|
||
|
r11 = this;
|
||
|
android.widget.CheckedTextView r0 = r11.j
|
||
|
android.content.Context r0 = r0.getContext()
|
||
|
int[] r1 = o.SYO.ZqN.CheckedTextView
|
||
|
o.McA r2 = new o.McA
|
||
|
r3 = 0
|
||
|
android.content.res.TypedArray r1 = r0.obtainStyledAttributes(r12, r1, r13, r3)
|
||
|
r2.<init>(r0, r1)
|
||
|
android.widget.CheckedTextView r4 = r11.j
|
||
|
android.content.Context r5 = r4.getContext()
|
||
|
int[] r6 = o.SYO.ZqN.CheckedTextView
|
||
|
android.content.res.TypedArray r8 = r2.d
|
||
|
r10 = 0
|
||
|
r7 = r12
|
||
|
r9 = r13
|
||
|
androidx.core.view.ViewCompat.sm_(r4, r5, r6, r7, r8, r9, r10)
|
||
|
int r12 = o.SYO.ZqN.CheckedTextView_checkMarkCompat // Catch: java.lang.Throwable -> L9d
|
||
|
android.content.res.TypedArray r13 = r2.d // Catch: java.lang.Throwable -> L9d
|
||
|
boolean r12 = r13.hasValue(r12) // Catch: java.lang.Throwable -> L9d
|
||
|
if (r12 == 0) goto L44
|
||
|
int r12 = o.SYO.ZqN.CheckedTextView_checkMarkCompat // Catch: java.lang.Throwable -> L9d
|
||
|
android.content.res.TypedArray r13 = r2.d // Catch: java.lang.Throwable -> L9d
|
||
|
int r12 = r13.getResourceId(r12, r3) // Catch: java.lang.Throwable -> L9d
|
||
|
if (r12 == 0) goto L44
|
||
|
android.widget.CheckedTextView r13 = r11.j // Catch: android.content.res.Resources.NotFoundException -> L44 java.lang.Throwable -> L9d
|
||
|
android.content.Context r0 = r13.getContext() // Catch: android.content.res.Resources.NotFoundException -> L44 java.lang.Throwable -> L9d
|
||
|
android.graphics.drawable.Drawable r12 = o.AgY.dT_(r0, r12) // Catch: android.content.res.Resources.NotFoundException -> L44 java.lang.Throwable -> L9d
|
||
|
r13.setCheckMarkDrawable(r12) // Catch: android.content.res.Resources.NotFoundException -> L44 java.lang.Throwable -> L9d
|
||
|
goto L65
|
||
|
L44:
|
||
|
int r12 = o.SYO.ZqN.CheckedTextView_android_checkMark // Catch: java.lang.Throwable -> L9d
|
||
|
android.content.res.TypedArray r13 = r2.d // Catch: java.lang.Throwable -> L9d
|
||
|
boolean r12 = r13.hasValue(r12) // Catch: java.lang.Throwable -> L9d
|
||
|
if (r12 == 0) goto L65
|
||
|
int r12 = o.SYO.ZqN.CheckedTextView_android_checkMark // Catch: java.lang.Throwable -> L9d
|
||
|
android.content.res.TypedArray r13 = r2.d // Catch: java.lang.Throwable -> L9d
|
||
|
int r12 = r13.getResourceId(r12, r3) // Catch: java.lang.Throwable -> L9d
|
||
|
if (r12 == 0) goto L65
|
||
|
android.widget.CheckedTextView r13 = r11.j // Catch: java.lang.Throwable -> L9d
|
||
|
android.content.Context r0 = r13.getContext() // Catch: java.lang.Throwable -> L9d
|
||
|
android.graphics.drawable.Drawable r12 = o.AgY.dT_(r0, r12) // Catch: java.lang.Throwable -> L9d
|
||
|
r13.setCheckMarkDrawable(r12) // Catch: java.lang.Throwable -> L9d
|
||
|
L65:
|
||
|
int r12 = o.SYO.ZqN.CheckedTextView_checkMarkTint // Catch: java.lang.Throwable -> L9d
|
||
|
android.content.res.TypedArray r13 = r2.d // Catch: java.lang.Throwable -> L9d
|
||
|
boolean r12 = r13.hasValue(r12) // Catch: java.lang.Throwable -> L9d
|
||
|
if (r12 == 0) goto L7a
|
||
|
android.widget.CheckedTextView r12 = r11.j // Catch: java.lang.Throwable -> L9d
|
||
|
int r13 = o.SYO.ZqN.CheckedTextView_checkMarkTint // Catch: java.lang.Throwable -> L9d
|
||
|
android.content.res.ColorStateList r13 = r2.jK_(r13) // Catch: java.lang.Throwable -> L9d
|
||
|
o.ZXi.uT_(r12, r13) // Catch: java.lang.Throwable -> L9d
|
||
|
L7a:
|
||
|
int r12 = o.SYO.ZqN.CheckedTextView_checkMarkTintMode // Catch: java.lang.Throwable -> L9d
|
||
|
android.content.res.TypedArray r13 = r2.d // Catch: java.lang.Throwable -> L9d
|
||
|
boolean r12 = r13.hasValue(r12) // Catch: java.lang.Throwable -> L9d
|
||
|
if (r12 == 0) goto L97
|
||
|
android.widget.CheckedTextView r12 = r11.j // Catch: java.lang.Throwable -> L9d
|
||
|
int r13 = o.SYO.ZqN.CheckedTextView_checkMarkTintMode // Catch: java.lang.Throwable -> L9d
|
||
|
android.content.res.TypedArray r0 = r2.d // Catch: java.lang.Throwable -> L9d
|
||
|
r1 = -1
|
||
|
int r13 = r0.getInt(r13, r1) // Catch: java.lang.Throwable -> L9d
|
||
|
r0 = 0
|
||
|
android.graphics.PorterDuff$Mode r13 = o.FIj.hZ_(r13, r0) // Catch: java.lang.Throwable -> L9d
|
||
|
o.ZXi.uU_(r12, r13) // Catch: java.lang.Throwable -> L9d
|
||
|
L97:
|
||
|
android.content.res.TypedArray r12 = r2.d
|
||
|
r12.recycle()
|
||
|
return
|
||
|
L9d:
|
||
|
r12 = move-exception
|
||
|
android.content.res.TypedArray r13 = r2.d
|
||
|
r13.recycle()
|
||
|
throw r12
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: o.jzk.fE_(android.util.AttributeSet, int):void");
|
||
|
}
|
||
|
|
||
|
public void fF_(ColorStateList colorStateList) {
|
||
|
this.a = colorStateList;
|
||
|
this.d = true;
|
||
|
c();
|
||
|
}
|
||
|
|
||
|
public void fG_(PorterDuff.Mode mode) {
|
||
|
this.b = mode;
|
||
|
this.e = true;
|
||
|
c();
|
||
|
}
|
||
|
|
||
|
public void d() {
|
||
|
if (this.c) {
|
||
|
this.c = false;
|
||
|
} else {
|
||
|
this.c = true;
|
||
|
c();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public void c() {
|
||
|
Drawable uS_ = ZXi.uS_(this.j);
|
||
|
if (uS_ != null) {
|
||
|
if (this.d || this.e) {
|
||
|
Drawable mutate = Tlu.pI_(uS_).mutate();
|
||
|
if (this.d) {
|
||
|
Tlu.pF_(mutate, this.a);
|
||
|
}
|
||
|
if (this.e) {
|
||
|
Tlu.pG_(mutate, this.b);
|
||
|
}
|
||
|
if (mutate.isStateful()) {
|
||
|
mutate.setState(this.j.getDrawableState());
|
||
|
}
|
||
|
this.j.setCheckMarkDrawable(mutate);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|