what-the-bank/sources/o/C8590dPx.java

155 lines
7.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.widget.CompoundButton;
/* renamed from: o.dPx, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class C8590dPx {
private boolean c;
private final CompoundButton g;
private ColorStateList b = null;
private PorterDuff.Mode a = null;
private boolean d = false;
private boolean e = false;
public int a(int i) {
return i;
}
public C8590dPx(CompoundButton compoundButton) {
this.g = compoundButton;
}
/* 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 fI_(android.util.AttributeSet r12, int r13) {
/*
r11 = this;
android.widget.CompoundButton r0 = r11.g
android.content.Context r0 = r0.getContext()
int[] r1 = o.SYO.ZqN.CompoundButton
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.CompoundButton r4 = r11.g
android.content.Context r5 = r4.getContext()
int[] r6 = o.SYO.ZqN.CompoundButton
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.CompoundButton_buttonCompat // 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.CompoundButton_buttonCompat // 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.CompoundButton r13 = r11.g // 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.setButtonDrawable(r12) // Catch: android.content.res.Resources.NotFoundException -> L44 java.lang.Throwable -> L9d
goto L65
L44:
int r12 = o.SYO.ZqN.CompoundButton_android_button // 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.CompoundButton_android_button // 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.CompoundButton r13 = r11.g // 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.setButtonDrawable(r12) // Catch: java.lang.Throwable -> L9d
L65:
int r12 = o.SYO.ZqN.CompoundButton_buttonTint // 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.CompoundButton r12 = r11.g // Catch: java.lang.Throwable -> L9d
int r13 = o.SYO.ZqN.CompoundButton_buttonTint // Catch: java.lang.Throwable -> L9d
android.content.res.ColorStateList r13 = r2.jK_(r13) // Catch: java.lang.Throwable -> L9d
o.C16528pAJ.vb_(r12, r13) // Catch: java.lang.Throwable -> L9d
L7a:
int r12 = o.SYO.ZqN.CompoundButton_buttonTintMode // 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.CompoundButton r12 = r11.g // Catch: java.lang.Throwable -> L9d
int r13 = o.SYO.ZqN.CompoundButton_buttonTintMode // 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.C16528pAJ.vc_(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.C8590dPx.fI_(android.util.AttributeSet, int):void");
}
public void fJ_(ColorStateList colorStateList) {
this.b = colorStateList;
this.d = true;
e();
}
public void fK_(PorterDuff.Mode mode) {
this.a = mode;
this.e = true;
e();
}
public void b() {
if (this.c) {
this.c = false;
} else {
this.c = true;
e();
}
}
void e() {
Drawable uY_ = C16528pAJ.uY_(this.g);
if (uY_ != null) {
if (this.d || this.e) {
Drawable mutate = Tlu.pI_(uY_).mutate();
if (this.d) {
Tlu.pF_(mutate, this.b);
}
if (this.e) {
Tlu.pG_(mutate, this.a);
}
if (mutate.isStateful()) {
mutate.setState(this.g.getDrawableState());
}
this.g.setButtonDrawable(mutate);
}
}
}
public ColorStateList fH_() {
return this.b;
}
}