what-the-bank/sources/com/scb/phone/view/fragment/customizeyourpages/CustomizeYourPageFragment.java

412 lines
16 KiB
Java

package com.scb.phone.view.fragment.customizeyourpages;
import android.content.DialogInterface;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.os.Bundle;
import android.os.Process;
import android.os.SystemClock;
import android.text.TextUtils;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.widget.ExpandableListView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.PreLoadCheckActivity;
import com.scb.phone.view.custom.common.CustomCustomizePageItem;
import com.scb.phone.view.custom.common.CustomDialog;
import com.scb.phone.view.fragment.BaseFragment;
import com.scb.phone.view.fragment.customizeyourpages.CustomizeYourPageFragment;
import java.lang.reflect.Method;
import net.sf.scuba.smartcards.ISO7816;
import net.sf.scuba.smartcards.ISOFileInfo;
import o.C0693Mj;
import o.InterfaceC12844fIs;
import o.InterfaceC13391fZD;
import o.aBF;
import o.cYK;
import o.dQY;
import o.xzZ;
/* loaded from: classes5.dex */
public class CustomizeYourPageFragment extends Hilt_CustomizeYourPageFragment implements cYK {
@BindView
CustomCustomizePageItem applyTheme;
@InterfaceC13391fZD
public aBF customizeYourPagePresenter;
private static final byte[] $$a = {53, ISOFileInfo.FMD_BYTE, ISO7816.INS_READ_BINARY_STAMPED, -81};
private static final int $$b = 216;
private static int $10 = 0;
private static int $11 = 1;
private static int g = 0;
private static int f = 1;
private static char[] d = {16963, 36834};
private static long c = -1300841728101836519L;
public static /* synthetic */ Object d(Object[] objArr, int i, int i2, int i3) {
Object obj;
String intern;
int i4 = ~i3;
int i5 = ~i;
int i6 = ~i2;
int i7 = i4 | (~(i5 | i6));
int i8 = ~(i | i2);
if ((i * (-721)) + (i2 * (-721)) + ((i7 | i8) * 1444) + (((~(i3 | i2)) | (~(i | i3)) | i8) * (-1444)) + (((~(i | i6)) | (~(i2 | i5))) * 722) != 1) {
return c(objArr);
}
CustomizeYourPageFragment customizeYourPageFragment = (CustomizeYourPageFragment) objArr[0];
boolean booleanValue = ((Boolean) objArr[1]).booleanValue();
int i9 = 2 % 2;
int i10 = f + 93;
int i11 = i10 % 128;
g = i11;
int i12 = i10 % 2;
aBF abf = customizeYourPageFragment.customizeYourPagePresenter;
if (!booleanValue) {
Object[] objArr2 = new Object[1];
n((char) (ViewConfiguration.getDoubleTapTimeout() >> 16), -ExpandableListView.getPackedPositionChild(0L), 1 - View.resolveSize(0, 0), objArr2);
obj = objArr2[0];
} else {
int i13 = i11 + 17;
f = i13 % 128;
if (i13 % 2 != 0) {
Object[] objArr3 = new Object[1];
n((char) (Color.blue(0) + 52640), 1 - (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), -ImageFormat.getBitsPerPixel(0), objArr3);
obj = objArr3[0];
} else {
Object[] objArr4 = new Object[1];
n((char) (52640 << Color.blue(1)), 1 % (SystemClock.currentThreadTimeMillis() > (-1L) ? 1 : (SystemClock.currentThreadTimeMillis() == (-1L) ? 0 : -1)), -ImageFormat.getBitsPerPixel(0), objArr4);
intern = ((String) objArr4[0]).intern();
abf.b(intern);
return null;
}
}
intern = ((String) obj).intern();
abf.b(intern);
return null;
}
/* JADX WARN: Removed duplicated region for block: B:10:0x0024 */
/* JADX WARN: Removed duplicated region for block: B:7:0x001c */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:10:0x0024 -> B:4:0x0029). Please report as a decompilation issue!!! */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void m(byte r7, short r8, byte r9, java.lang.Object[] r10) {
/*
byte[] r0 = com.scb.phone.view.fragment.customizeyourpages.CustomizeYourPageFragment.$$a
int r7 = r7 * 4
int r7 = r7 + 4
int r8 = r8 * 4
int r8 = 1 - r8
int r9 = 106 - r9
byte[] r1 = new byte[r8]
r2 = 0
if (r0 != 0) goto L14
r3 = r8
r4 = r2
goto L29
L14:
r3 = r2
L15:
int r4 = r3 + 1
byte r5 = (byte) r9
r1[r3] = r5
if (r4 != r8) goto L24
java.lang.String r7 = new java.lang.String
r7.<init>(r1, r2)
r10[r2] = r7
return
L24:
r3 = r0[r7]
r6 = r3
r3 = r9
r9 = r6
L29:
int r9 = -r9
int r9 = r9 + r3
int r7 = r7 + 1
r3 = r4
goto L15
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.customizeyourpages.CustomizeYourPageFragment.m(byte, short, byte, java.lang.Object[]):void");
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
int i = 2 % 2;
int i2 = g + 57;
f = i2 % 128;
int i3 = i2 % 2;
View inflate = layoutInflater.inflate(R.layout.2131559532, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
this.customizeYourPagePresenter.e((aBF) this);
this.applyTheme.setTitle(getString(R.string.apply_theme_title));
this.applyTheme.setDescription(getString(R.string.apply_theme_description));
this.applyTheme.setDividerVisible(false);
this.applyTheme.setToggleStatus(this.customizeYourPagePresenter.d());
j();
int i4 = g + 117;
f = i4 % 128;
int i5 = i4 % 2;
return inflate;
}
private void j() {
int i = 2 % 2;
this.applyTheme.setOnCustomCustomizePageItemClickListener(new InterfaceC12844fIs(this) { // from class: o.ePr
private CustomizeYourPageFragment d;
@Override // o.InterfaceC12844fIs
public final void e() {
CustomizeYourPageFragment.c(this.d);
}
{
this.d = this;
}
});
int i2 = f + 7;
g = i2 % 128;
int i3 = i2 % 2;
}
private /* synthetic */ void f() {
int i = 2 % 2;
int i2 = f + 115;
g = i2 % 128;
int i3 = i2 % 2;
this.customizeYourPagePresenter.a();
this.applyTheme.checkBox.setChecked(!r1.isChecked());
int i4 = g + 109;
f = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.cYK
public final void a(final boolean z) {
int i;
int i2 = 2 % 2;
int i3 = g + 51;
f = i3 % 128;
if (i3 % 2 != 0) {
CustomDialog c2 = CustomDialog.b(getActivity()).c(R.string.dialog_apply_theme_title);
if (z) {
int i4 = f + 95;
g = i4 % 128;
if (i4 % 2 != 0) {
int i5 = 5 % 4;
}
i = R.string.dialog_apply_theme_message_toggle_on;
} else {
i = R.string.dialog_apply_theme_message_toggle_off;
}
((CustomDialog) CustomDialog.e(new Object[]{c2.d(i).aoT_(R.string.dialog_apply_theme_btn_confirm, new DialogInterface.OnClickListener(this, z) { // from class: o.ePl
private boolean b;
private CustomizeYourPageFragment d;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i6) {
CustomizeYourPageFragment.c(this.d, this.b);
}
{
this.d = this;
this.b = z;
}
}), Integer.valueOf(R.string.dialog_apply_theme_btn_cancel), new DialogInterface.OnClickListener() { // from class: o.ePq
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i6) {
CustomizeYourPageFragment.d();
}
}})).show();
return;
}
CustomDialog.b(getActivity()).c(R.string.dialog_apply_theme_title);
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.cYK
public final void d(C0693Mj c0693Mj) {
int i = 2 % 2;
int i2 = g + 9;
f = i2 % 128;
int i3 = i2 % 2;
e(c0693Mj);
int i4 = g + 95;
f = i4 % 128;
int i5 = i4 % 2;
}
private static /* synthetic */ Object c(Object[] objArr) {
CustomizeYourPageFragment customizeYourPageFragment = (CustomizeYourPageFragment) objArr[0];
boolean booleanValue = ((Boolean) objArr[1]).booleanValue();
int i = 2 % 2;
int i2 = g + 115;
f = i2 % 128;
int i3 = i2 % 2;
customizeYourPageFragment.applyTheme.setToggleStatus(booleanValue);
int i4 = f + 23;
g = i4 % 128;
int i5 = i4 % 2;
return null;
}
@Override // o.cYK
public final void e() {
int i = 2 % 2;
int i2 = g + 67;
f = i2 % 128;
int i3 = i2 % 2;
if (getActivity() instanceof BaseActivity) {
BaseActivity baseActivity = (BaseActivity) getActivity();
PreLoadCheckActivity.f(new Object[]{baseActivity}, -1419637711, 1419637739, System.identityHashCode(baseActivity));
}
int i4 = g + 85;
f = i4 % 128;
int i5 = i4 % 2;
}
private static void n(char c2, int i, int i2, Object[] objArr) {
int i3 = 2 % 2;
dQY dqy = new dQY();
long[] jArr = new long[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i4 = $10 + 79;
$11 = i4 % 128;
int i5 = i4 % 2;
int i6 = dqy.a;
try {
Object[] objArr2 = {Integer.valueOf(d[i + dqy.a])};
Object obj = xzZ.y.get(1095064095);
if (obj == null) {
Class cls = (Class) xzZ.c(View.MeasureSpec.getMode(0) + 308, (Process.getElapsedCpuTime() > 0L ? 1 : (Process.getElapsedCpuTime() == 0L ? 0 : -1)) + 4, (char) ((ViewConfiguration.getDoubleTapTimeout() >> 16) + 32797));
byte b = (byte) 0;
byte b2 = b;
Object[] objArr3 = new Object[1];
m(b, b2, (byte) (b2 | 8), objArr3);
obj = cls.getMethod((String) objArr3[0], Integer.TYPE);
xzZ.y.put(1095064095, obj);
}
Object[] objArr4 = {Long.valueOf(((Long) ((Method) obj).invoke(null, objArr2)).longValue()), Long.valueOf(dqy.a), Long.valueOf(c), Integer.valueOf(c2)};
Object obj2 = xzZ.y.get(-548438098);
if (obj2 == null) {
Class cls2 = (Class) xzZ.c(Color.green(0) + 412, 5 - (ViewConfiguration.getMinimumFlingVelocity() >> 16), (char) Gravity.getAbsoluteGravity(0, 0));
byte b3 = (byte) 0;
byte b4 = b3;
Object[] objArr5 = new Object[1];
m(b3, b4, (byte) (b4 | 7), objArr5);
obj2 = cls2.getMethod((String) objArr5[0], Long.TYPE, Long.TYPE, Long.TYPE, Integer.TYPE);
xzZ.y.put(-548438098, obj2);
}
jArr[i6] = ((Long) ((Method) obj2).invoke(null, objArr4)).longValue();
Object[] objArr6 = {dqy, dqy};
Object obj3 = xzZ.y.get(1071125919);
if (obj3 == null) {
Class cls3 = (Class) xzZ.c(407 - KeyEvent.normalizeMetaState(0), View.MeasureSpec.makeMeasureSpec(0, 0) + 5, (char) (29235 - (ViewConfiguration.getScrollFriction() > BitmapDescriptorFactory.HUE_RED ? 1 : (ViewConfiguration.getScrollFriction() == BitmapDescriptorFactory.HUE_RED ? 0 : -1))));
byte b5 = (byte) 0;
byte b6 = b5;
Object[] objArr7 = new Object[1];
m(b5, b6, b6, objArr7);
obj3 = cls3.getMethod((String) objArr7[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj3);
}
((Method) obj3).invoke(null, objArr6);
} catch (Throwable th) {
Throwable cause = th.getCause();
if (cause == null) {
throw th;
}
throw cause;
}
}
char[] cArr = new char[i2];
dqy.a = 0;
while (dqy.a < i2) {
int i7 = $10 + 113;
$11 = i7 % 128;
int i8 = i7 % 2;
cArr[dqy.a] = (char) jArr[dqy.a];
try {
Object[] objArr8 = {dqy, dqy};
Object obj4 = xzZ.y.get(1071125919);
if (obj4 == null) {
Class cls4 = (Class) xzZ.c((SystemClock.uptimeMillis() > 0L ? 1 : (SystemClock.uptimeMillis() == 0L ? 0 : -1)) + 406, TextUtils.getOffsetBefore("", 0) + 5, (char) (29235 - (SystemClock.elapsedRealtimeNanos() > 0L ? 1 : (SystemClock.elapsedRealtimeNanos() == 0L ? 0 : -1))));
byte b7 = (byte) 0;
byte b8 = b7;
Object[] objArr9 = new Object[1];
m(b7, b8, b8, objArr9);
obj4 = cls4.getMethod((String) objArr9[0], Object.class, Object.class);
xzZ.y.put(1071125919, obj4);
}
((Method) obj4).invoke(null, objArr8);
} catch (Throwable th2) {
Throwable cause2 = th2.getCause();
if (cause2 == null) {
throw th2;
}
throw cause2;
}
}
objArr[0] = new String(cArr);
}
@Override // o.cYK
public final void e(boolean z) {
d(new Object[]{this, Boolean.valueOf(z)}, 665062618, -665062618, System.identityHashCode(this));
}
public static /* synthetic */ void d() {
int i = 2 % 2;
int i2 = f + 81;
g = i2 % 128;
int i3 = i2 % 2;
}
private /* synthetic */ void d(boolean z) {
d(new Object[]{this, Boolean.valueOf(z)}, 958859443, -958859442, System.identityHashCode(this));
}
public static /* synthetic */ void c(CustomizeYourPageFragment customizeYourPageFragment) {
int i = 2 % 2;
int i2 = g + 11;
f = i2 % 128;
int i3 = i2 % 2;
customizeYourPageFragment.f();
int i4 = f + 67;
g = i4 % 128;
int i5 = i4 % 2;
}
public static /* synthetic */ void c(CustomizeYourPageFragment customizeYourPageFragment, boolean z) {
int i = 2 % 2;
int i2 = f + 13;
g = i2 % 128;
int i3 = i2 % 2;
Object[] objArr = {customizeYourPageFragment, Boolean.valueOf(z)};
int identityHashCode = System.identityHashCode(customizeYourPageFragment);
if (i3 != 0) {
d(objArr, 958859443, -958859442, identityHashCode);
int i4 = 14 / 0;
} else {
d(objArr, 958859443, -958859442, identityHashCode);
}
int i5 = f + 89;
g = i5 % 128;
int i6 = i5 % 2;
}
}