what-the-bank/sources/com/scb/phone/view/fragment/chequemanagement/chequestatus/ChequeStatusFragment.java

1261 lines
41 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.chequemanagement.chequestatus;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Spinner;
import android.widget.SpinnerAdapter;
import android.widget.TextView;
import androidx.core.widget.NestedScrollView;
import androidx.fragment.app.FragmentActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.adapter.chequemanagement.chequestatus.ChequeDetailListAdapter;
import com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment;
import com.scb.phone.view.fragment.transferandpay.AccountSourceSelectFragment;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
import net.sf.scuba.smartcards.ISO7816;
import o.AbstractC13482fbE;
import o.C1171Xc;
import o.C3455axq;
import o.EnumC12147esi;
import o.EnumC16550pIx;
import o.EnumC8951daY;
import o.HX;
import o.HY;
import o.HZ;
import o.InterfaceC13391fZD;
import o.Say;
import o.WEM;
import o.WW;
import o.YE;
import o.cYE;
import o.fJM;
/* loaded from: classes5.dex */
public class ChequeStatusFragment extends Hilt_ChequeStatusFragment implements cYE.RVV, AccountSourceSelectFragment.Sts {
private String c;
@BindView
View errorList;
private ChequeDetailListAdapter g;
private boolean h;
private boolean i;
@BindView
ImageView ivExpand;
private int k;
private ArrayAdapter l;
private int m;
/* renamed from: o, reason: collision with root package name */
private int f8029o;
@InterfaceC13391fZD
public C3455axq presenter;
private View r;
@BindView
RecyclerView recyclerView;
@BindView
LinearLayout rootErrorNoAccount;
@BindView
NestedScrollView scrollView;
@BindView
Spinner spFilter;
@BindView
TextView tvChequeFooter;
@BindView
TextView tvDownAccountLbl;
@BindView
TextView tvErrorNoAccountDetail;
@BindView
TextView tvErrorNoAccountTitle;
@BindView
TextView tvLblTotal;
@BindView
TextView tvNoCheque;
@BindView
TextView tvNumberOfCheque;
@BindView
TextView tvNumberOfChequeTitle;
@BindView
TextView tvTopAccountLbl;
@BindView
LinearLayout viewChequeSummaryInfo;
@BindView
View viewPaid;
@BindView
View viewPending;
@BindView
View viewReturn;
@BindView
LinearLayout viewRoot;
private static final byte[] $$a = {78, -14, -82, ISO7816.INS_UPDATE_BINARY};
private static final int $$b = 84;
private static int $10 = 0;
private static int $11 = 1;
private static int q = 0;
private static int p = 1;
private static char[] s = {39970};
private List<String> n = new ArrayList();
private boolean f = false;
private Double d = Double.valueOf(-1.0d);
private List<HX> j = new ArrayList();
public static /* synthetic */ Object b(Object[] objArr, int i, int i2, int i3) {
int i4 = ~i3;
int i5 = (~i) | i4;
switch ((i * 370) + (i2 * 370) + ((i | i2 | i4) * (-369)) + (((~i5) | i2) * (-369)) + (((~(i | i3)) | (~((~i2) | i)) | (~(i2 | i5))) * 369)) {
case 1:
ChequeStatusFragment chequeStatusFragment = (ChequeStatusFragment) objArr[0];
int i6 = 2 % 2;
int i7 = p + 27;
q = i7 % 128;
int i8 = i7 % 2;
ChequeDetailListAdapter chequeDetailListAdapter = chequeStatusFragment.g;
chequeDetailListAdapter.d = false;
chequeDetailListAdapter.b = -1;
chequeDetailListAdapter.c.clear();
chequeStatusFragment.m = 0;
chequeStatusFragment.f8029o = 0;
chequeStatusFragment.presenter.e = 1;
chequeStatusFragment.v();
chequeStatusFragment.i();
chequeStatusFragment.recyclerView.setVisibility(8);
chequeStatusFragment.ivExpand.setEnabled(true);
ChequeDetailListAdapter chequeDetailListAdapter2 = chequeStatusFragment.g;
chequeDetailListAdapter2.d = false;
chequeDetailListAdapter2.b = -1;
chequeDetailListAdapter2.c.clear();
TextView textView = chequeStatusFragment.tvNumberOfCheque;
Object[] objArr2 = new Object[1];
t(new byte[]{0}, new int[]{0, 1, 34, 0}, false, objArr2);
textView.setText(((String) objArr2[0]).intern());
fJM.d(chequeStatusFragment.viewChequeSummaryInfo);
b(new Object[]{chequeStatusFragment, Boolean.valueOf(chequeStatusFragment.f)}, -1570379404, 1570379407, System.identityHashCode(chequeStatusFragment));
int i9 = q + 15;
p = i9 % 128;
int i10 = i9 % 2;
return null;
case 2:
return b(objArr);
case 3:
return d(objArr);
case 4:
return e(objArr);
case 5:
return a(objArr);
case 6:
return g(objArr);
default:
return c(objArr);
}
}
private static void w(short s2, byte b, int i, Object[] objArr) {
int i2 = 73 - (b * 2);
int i3 = s2 * 4;
int i4 = i + 4;
byte[] bArr = $$a;
byte[] bArr2 = new byte[1 - i3];
int i5 = 0 - i3;
int i6 = -1;
if (bArr == null) {
i2 = i5 + i4;
i4 = i4;
i6 = -1;
}
while (true) {
int i7 = i6 + 1;
bArr2[i7] = (byte) i2;
if (i7 == i5) {
objArr[0] = new String(bArr2, 0);
return;
}
int i8 = i4 + 1;
i2 += bArr[i8];
i4 = i8;
i6 = i7;
}
}
public static ChequeStatusFragment c(boolean z, int i) {
int i2 = 2 % 2;
Bundle bundle = new Bundle();
ChequeStatusFragment chequeStatusFragment = new ChequeStatusFragment();
bundle.putBoolean("com.scb.phone.EXTRA_IS_RECEIVED", z);
bundle.putInt("com.scb.phone.EXTRA_SOURCE_SIZE", i);
chequeStatusFragment.setArguments(bundle);
int i3 = p + 35;
q = i3 % 128;
if (i3 % 2 == 0) {
return chequeStatusFragment;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
int i = 2 % 2;
int i2 = p + 29;
q = i2 % 128;
this.r = layoutInflater.inflate(R.layout.2131559502, viewGroup, i2 % 2 != 0);
this.presenter.e((C3455axq) this);
ButterKnife.c(this, this.r);
r();
return this.r;
}
private void r() {
int i = 2 % 2;
int i2 = q + 111;
p = i2 % 128;
if (i2 % 2 != 0) {
o();
n();
b(new Object[]{this}, 1176532511, -1176532509, System.identityHashCode(this));
int i3 = p + 11;
q = i3 % 128;
int i4 = i3 % 2;
return;
}
o();
n();
b(new Object[]{this}, 1176532511, -1176532509, System.identityHashCode(this));
throw null;
}
private /* synthetic */ void g() {
int i = 2 % 2;
fJM.b(this.ivExpand);
if (this.viewChequeSummaryInfo.getVisibility() != 8) {
fJM.d(this.viewChequeSummaryInfo);
int i2 = q + 81;
p = i2 % 128;
int i3 = i2 % 2;
return;
}
int i4 = p + 119;
q = i4 % 128;
int i5 = i4 % 2;
fJM.e(this.viewChequeSummaryInfo);
int i6 = p + 125;
q = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 23 / 0;
}
}
@Override // androidx.fragment.app.Fragment
public void onViewCreated(View view, Bundle bundle) {
EnumC12147esi enumC12147esi;
int i;
int i2 = 2 % 2;
super.onViewCreated(view, bundle);
this.ivExpand.setOnClickListener(new View.OnClickListener(this) { // from class: o.eMI
private ChequeStatusFragment c;
@Override // android.view.View.OnClickListener
public final void onClick(View view2) {
ChequeStatusFragment.d(this.c);
}
{
this.c = this;
}
});
if (getArguments() != null) {
this.f = getArguments().getBoolean("com.scb.phone.EXTRA_IS_RECEIVED", false);
if (getArguments().getInt("com.scb.phone.EXTRA_SOURCE_SIZE") > 0) {
d(this.f);
this.rootErrorNoAccount.setVisibility(8);
int i3 = q + 3;
p = i3 % 128;
int i4 = i3 % 2;
f();
}
}
Object obj = null;
if (this.f) {
int i5 = p + 35;
q = i5 % 128;
if (i5 % 2 != 0) {
EnumC12147esi enumC12147esi2 = EnumC12147esi.RECEIVED;
obj.hashCode();
throw null;
}
enumC12147esi = EnumC12147esi.RECEIVED;
} else {
enumC12147esi = EnumC12147esi.ISSUED;
int i6 = p + 49;
q = i6 % 128;
int i7 = i6 % 2;
}
b(enumC12147esi);
String string = getString(!this.f ? R.string.error_issued_cheque_no_account : R.string.error_deposit_cheque_no_account);
if (this.f) {
int i8 = p + 107;
q = i8 % 128;
if (i8 % 2 != 0) {
obj.hashCode();
throw null;
}
i = R.string.error_deposit_cheque_no_account_detail;
} else {
i = R.string.error_issued_cheque_no_account_detail;
}
String string2 = getString(i);
this.tvErrorNoAccountTitle.setText(string);
this.tvErrorNoAccountDetail.setText(string2);
this.rootErrorNoAccount.setVisibility(0);
c();
b();
f();
}
private void f() {
int i;
int i2 = 2 % 2;
if (this.f) {
int i3 = p + 5;
q = i3 % 128;
if (i3 % 2 != 0) {
Object obj = null;
obj.hashCode();
throw null;
}
i = R.string.cheque_status_tab_received;
} else {
int i4 = q + 35;
p = i4 % 128;
int i5 = i4 % 2;
i = R.string.cheque_status_tab_issued;
}
String string = getString(i);
this.tvLblTotal.setContentDescription(string);
this.tvNumberOfChequeTitle.setContentDescription(string);
this.tvNumberOfCheque.setContentDescription(string);
this.tvChequeFooter.setContentDescription(string);
this.rootErrorNoAccount.setContentDescription(string);
this.recyclerView.setContentDescription(string);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroyView() {
int i = 2 % 2;
int i2 = p + 107;
q = i2 % 128;
int i3 = i2 % 2;
super.onDestroyView();
if (this.r != null) {
int i4 = q + 91;
p = i4 % 128;
int i5 = i4 % 2;
Object obj = null;
this.r = null;
if (i5 != 0) {
return;
}
obj.hashCode();
throw null;
}
}
/* JADX WARN: Code restructure failed: missing block: B:41:0x0152, code lost:
if (r21[r1.c] == 1) goto L38;
*/
/* JADX WARN: Code restructure failed: missing block: B:42:0x01d0, code lost:
r4 = r1.c;
*/
/* JADX WARN: Code restructure failed: missing block: B:43:0x01d7, code lost:
r10 = new java.lang.Object[]{java.lang.Integer.valueOf(r0[r1.c]), java.lang.Integer.valueOf(r2)};
r2 = o.xzZ.y.get(1084521042);
*/
/* JADX WARN: Code restructure failed: missing block: B:44:0x01f4, code lost:
if (r2 == null) goto L49;
*/
/* JADX WARN: Code restructure failed: missing block: B:47:0x0241, code lost:
r3[r4] = ((java.lang.Character) ((java.lang.reflect.Method) r2).invoke(null, r10)).charValue();
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x0243, code lost:
r2 = r3[r1.c];
*/
/* JADX WARN: Code restructure failed: missing block: B:49:0x0247, code lost:
r4 = new java.lang.Object[]{r1, r1};
r7 = o.xzZ.y.get(1698744941);
*/
/* JADX WARN: Code restructure failed: missing block: B:50:0x0258, code lost:
if (r7 == null) goto L56;
*/
/* JADX WARN: Code restructure failed: missing block: B:53:0x02a9, code lost:
((java.lang.reflect.Method) r7).invoke(null, r4);
*/
/* JADX WARN: Code restructure failed: missing block: B:54:0x025d, code lost:
r7 = (java.lang.Class) o.xzZ.c(403 - (android.os.SystemClock.elapsedRealtime() > 0 ? 1 : (android.os.SystemClock.elapsedRealtime() == 0 ? 0 : -1)), android.graphics.Color.green(0) + 5, (char) ((android.view.ViewConfiguration.getEdgeSlop() >> 16) + 21608));
r12 = (byte) 0;
r14 = r12;
r9 = new java.lang.Object[1];
w(r12, r14, (byte) (r14 - 1), r9);
r7 = r7.getMethod((java.lang.String) r9[0], java.lang.Object.class, java.lang.Object.class);
o.xzZ.y.put(1698744941, r7);
*/
/* JADX WARN: Code restructure failed: missing block: B:56:0x01f9, code lost:
r2 = ((java.lang.Class) o.xzZ.c(15 - android.view.View.combineMeasuredStates(0, 0), android.text.TextUtils.lastIndexOf("", '0', 0, 0) + 6, (char) ((android.view.ViewConfiguration.getFadingEdgeLength() >> 16) + 58134))).getMethod("H", java.lang.Integer.TYPE, java.lang.Integer.TYPE);
o.xzZ.y.put(1084521042, r2);
*/
/* JADX WARN: Code restructure failed: missing block: B:58:0x015c, code lost:
r4 = r1.c;
r9 = r0[r1.c];
*/
/* JADX WARN: Code restructure failed: missing block: B:59:0x0163, code lost:
r11 = new java.lang.Object[2];
r11[r7] = java.lang.Integer.valueOf(r2);
r11[0] = java.lang.Integer.valueOf(r9);
r2 = o.xzZ.y.get(850398076);
*/
/* JADX WARN: Code restructure failed: missing block: B:60:0x017f, code lost:
if (r2 == null) goto L42;
*/
/* JADX WARN: Code restructure failed: missing block: B:63:0x01cb, code lost:
r3[r4] = ((java.lang.Character) ((java.lang.reflect.Method) r2).invoke(null, r11)).charValue();
*/
/* JADX WARN: Code restructure failed: missing block: B:64:0x0182, code lost:
r2 = ((java.lang.Class) o.xzZ.c((android.view.ViewConfiguration.getGlobalActionKeyTimeout() > 0 ? 1 : (android.view.ViewConfiguration.getGlobalActionKeyTimeout() == 0 ? 0 : -1)) + 501, android.view.View.resolveSize(0, 0) + 5, (char) (54 - (android.view.ViewConfiguration.getTapTimeout() >> 16)))).getMethod("F", java.lang.Integer.TYPE, java.lang.Integer.TYPE);
o.xzZ.y.put(850398076, r2);
*/
/* JADX WARN: Code restructure failed: missing block: B:66:0x015a, code lost:
if (r21[r1.c] == 1) goto L38;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private static void t(byte[] r21, int[] r22, boolean r23, java.lang.Object[] r24) {
/*
Method dump skipped, instructions count: 834
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment.t(byte[], int[], boolean, java.lang.Object[]):void");
}
private static /* synthetic */ Object b(Object[] objArr) {
ChequeStatusFragment chequeStatusFragment = (ChequeStatusFragment) objArr[0];
int i = 2 % 2;
chequeStatusFragment.g = new ChequeDetailListAdapter(chequeStatusFragment.getContext(), chequeStatusFragment.j);
chequeStatusFragment.getContext();
chequeStatusFragment.recyclerView.setLayoutManager(new LinearLayoutManager());
chequeStatusFragment.recyclerView.setItemAnimator(new WEM());
chequeStatusFragment.recyclerView.setHasFixedSize(false);
chequeStatusFragment.recyclerView.setNestedScrollingEnabled(false);
chequeStatusFragment.recyclerView.setAdapter(chequeStatusFragment.g);
int i2 = q + 47;
p = i2 % 128;
if (i2 % 2 == 0) {
int i3 = 57 / 0;
}
return null;
}
private void o() {
int i = 2 % 2;
this.scrollView.setOnScrollChangeListener(new NestedScrollView.RVV(this) { // from class: o.eMH
private ChequeStatusFragment b;
@Override // androidx.core.widget.NestedScrollView.RVV
public final void e(NestedScrollView nestedScrollView, int i2, int i3) {
ChequeStatusFragment.b(new Object[]{this.b, nestedScrollView, Integer.valueOf(i2), Integer.valueOf(i3)}, 804897658, -804897653, i2);
}
{
this.b = this;
}
});
int i2 = q + 19;
p = i2 % 128;
if (i2 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private /* synthetic */ void c(NestedScrollView nestedScrollView, int i, int i2) {
int i3;
int i4 = 2 % 2;
if (i < i2) {
int i5 = q + 1;
p = i5 % 128;
if (i5 % 2 == 0) {
throw null;
}
return;
}
if (i >= (nestedScrollView.getChildAt(0).getMeasuredHeight() - nestedScrollView.getMeasuredHeight()) - 250 && (i3 = this.f8029o) < this.m && !this.i) {
this.i = true;
this.presenter.e = i3 + 1;
this.presenter.b(this.f, this.c, this.k);
}
int i6 = p + 7;
q = i6 % 128;
int i7 = i6 % 2;
}
private void n() {
int i = 2 % 2;
ArrayAdapter arrayAdapter = new ArrayAdapter(getContext(), R.layout.2131558945, this.n);
this.l = arrayAdapter;
this.h = false;
this.spFilter.setAdapter((SpinnerAdapter) arrayAdapter);
this.spFilter.setSelected(false);
this.spFilter.setSelection(0, false);
this.spFilter.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener(this) { // from class: com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment.1
private ChequeStatusFragment e;
@Override // android.widget.AdapterView.OnItemSelectedListener
public final void onNothingSelected(AdapterView<?> adapterView) {
}
{
this.e = this;
}
@Override // android.widget.AdapterView.OnItemSelectedListener
public final void onItemSelected(AdapterView<?> adapterView, View view, int i2, long j) {
ChequeStatusFragment.c(this.e, i2);
if (ChequeStatusFragment.a(this.e)) {
this.e.ivExpand.setVisibility(4);
ChequeStatusFragment.b(this.e);
}
ChequeStatusFragment.b(new Object[]{this.e}, -1871773759, 1871773763, (int) System.currentTimeMillis());
}
});
int i2 = q + 85;
p = i2 % 128;
if (i2 % 2 == 0) {
throw null;
}
}
private void b(WW ww) {
int i = 2 % 2;
int i2 = q + 75;
int i3 = i2 % 128;
p = i3;
int i4 = i2 % 2;
if (ww != null) {
int i5 = i3 + 73;
q = i5 % 128;
if (i5 % 2 == 0) {
this.c = ww.s;
this.d = ww.d;
b(this.f ? EnumC12147esi.RECEIVED : EnumC12147esi.ISSUED);
this.ivExpand.setVisibility(4);
C3455axq c3455axq = this.presenter;
C3455axq.Sts sts = c3455axq.c;
if (sts != null) {
sts.dispose();
}
C3455axq.IeS ieS = c3455axq.d;
if (ieS != null) {
ieS.dispose();
}
b(new Object[]{this}, -644298562, 644298563, System.identityHashCode(this));
int i6 = p + 9;
q = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 2 % 5;
return;
}
return;
}
this.c = ww.s;
this.d = ww.d;
throw null;
}
}
/* JADX WARN: Removed duplicated region for block: B:11:0x0070 A[RETURN] */
/* JADX WARN: Removed duplicated region for block: B:13:0x0071 */
@Override // o.cYE.RVV
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void b(o.HW r7, boolean r8) {
/*
r6 = this;
r0 = 2
int r1 = r0 % r0
androidx.recyclerview.widget.RecyclerView r1 = r6.recyclerView
r2 = 0
r1.setVisibility(r2)
android.widget.TextView r1 = r6.tvNoCheque
r3 = 8
r1.setVisibility(r3)
android.widget.LinearLayout r1 = r6.viewRoot
r1.setVisibility(r3)
r6.i = r2
int r1 = r7.a
r6.f8029o = r1
int r1 = r7.c
r6.m = r1
com.scb.phone.view.adapter.chequemanagement.chequestatus.ChequeDetailListAdapter r1 = r6.g
r1.d = r8
com.scb.phone.view.adapter.chequemanagement.chequestatus.ChequeDetailListAdapter r8 = r6.g
java.util.List<o.HX> r1 = r7.b
int r7 = r7.a
int r3 = r8.b
r4 = 0
if (r3 == r7) goto L56
if (r1 == 0) goto L56
int r3 = com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment.q
int r3 = r3 + 19
int r5 = r3 % 128
com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment.p = r5
int r3 = r3 % r0
if (r3 == 0) goto L52
boolean r3 = r1.isEmpty()
if (r3 != 0) goto L56
int r3 = com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment.p
int r3 = r3 + 101
int r5 = r3 % 128
com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment.q = r5
int r3 = r3 % r0
r8.b = r7
java.util.List<o.HX> r7 = r8.c
r7.addAll(r1)
goto L59
L52:
r1.isEmpty()
throw r4
L56:
r7 = 1
r8.d = r7
L59:
androidx.recyclerview.widget.RecyclerView r7 = r6.recyclerView
com.scb.phone.view.adapter.chequemanagement.chequestatus.ChequeDetailListAdapter r8 = r6.g
r7.setAdapter(r8)
android.widget.ImageView r7 = r6.ivExpand
r7.setVisibility(r2)
int r7 = com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment.q
int r7 = r7 + 85
int r8 = r7 % 128
com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment.p = r8
int r7 = r7 % r0
if (r7 == 0) goto L71
return
L71:
r4.hashCode()
throw r4
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment.b(o.HW, boolean):void");
}
@Override // o.cYE.RVV
public final void d(HZ hz) {
int i = 2 % 2;
int i2 = p + 43;
q = i2 % 128;
int i3 = i2 % 2;
a(hz.f, hz.g, hz.a, hz.h);
if (hz.c != null) {
this.n.clear();
this.n.addAll(hz.c);
e(this.n);
this.l.notifyDataSetChanged();
}
d();
int i4 = p + 17;
q = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.cYE.RVV
public final void d(HY hy) {
int i = 2 % 2;
int i2 = p + 93;
q = i2 % 128;
int i3 = i2 % 2;
a(hy.h, hy.f, hy.d, hy.g);
List<String> list = this.n;
if (list != null) {
list.clear();
this.n.addAll(hy.b);
e(this.n);
this.l.notifyDataSetChanged();
}
d();
int i4 = q + 85;
p = i4 % 128;
int i5 = i4 % 2;
}
private void d() {
int i = 2 % 2;
int i2 = p + 115;
q = i2 % 128;
int i3 = i2 % 2;
this.ivExpand.setEnabled(true);
this.presenter.b(this.f, this.c, this.k);
int i4 = q + 117;
p = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.cYE.RVV
public final void c() {
int i = 2 % 2;
int i2 = q + 55;
p = i2 % 128;
int i3 = i2 % 2;
this.ivExpand.setEnabled(false);
fJM.d(this.viewChequeSummaryInfo);
TextView textView = this.tvNumberOfCheque;
Object[] objArr = new Object[1];
t(new byte[]{0}, new int[]{0, 1, 34, 0}, false, objArr);
textView.setText(((String) objArr[0]).intern());
k();
int i4 = p + 111;
q = i4 % 128;
int i5 = i4 % 2;
}
@Override // o.cYE.RVV
public final void b() {
ImageView imageView;
int i = 2 % 2;
int i2 = p + 93;
q = i2 % 128;
if (i2 % 2 != 0) {
aq_();
this.ivExpand.setVisibility(5);
imageView = this.ivExpand;
} else {
aq_();
this.ivExpand.setVisibility(4);
imageView = this.ivExpand;
}
imageView.setEnabled(false);
m();
int i3 = q + 125;
p = i3 % 128;
if (i3 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
@Override // o.cYE.RVV
public final void b(String str) {
int i = 2 % 2;
aq_();
FragmentActivity activity = getActivity();
EnumC8951daY enumC8951daY = EnumC8951daY.ERROR;
if (getActivity() != null) {
int i2 = q + 63;
p = i2 % 128;
if (i2 % 2 == 0) {
BaseActivity.a(new Object[]{(BaseActivity) getActivity(), activity, Integer.valueOf(R.id.root_activity), str, enumC8951daY}, 855668825, -855668822, R.id.root_activity);
int i3 = 66 / 0;
} else {
BaseActivity.a(new Object[]{(BaseActivity) getActivity(), activity, Integer.valueOf(R.id.root_activity), str, enumC8951daY}, 855668825, -855668822, R.id.root_activity);
}
int i4 = p + 69;
q = i4 % 128;
int i5 = i4 % 2;
}
}
private void a(String str, String str2, String str3, String str4) {
int i = 2 % 2;
int i2 = q + 117;
p = i2 % 128;
int i3 = i2 % 2;
this.tvNumberOfCheque.setText(str);
d(this.viewPending, getString(R.string.cheque_pending), str2, EnumC16550pIx.PENDING);
d(this.viewPaid, getString(R.string.cheque_paid), str3, EnumC16550pIx.PAID);
d(this.viewReturn, getString(R.string.cheque_return), str4, EnumC16550pIx.RETURN);
int i4 = q + 55;
p = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
private static void d(View view, String str, String str2, EnumC16550pIx enumC16550pIx) {
int i = 2 % 2;
int i2 = q + 65;
p = i2 % 128;
int i3 = i2 % 2;
TextView textView = (TextView) view.findViewById(R.id.tv_cheque_summary_status);
TextView textView2 = (TextView) view.findViewById(R.id.tv_cheque_summary_money);
ImageView imageView = (ImageView) view.findViewById(R.id.iv_cheque_summary_status);
textView.setText(str);
textView2.setText(str2);
imageView.setImageResource(e(enumC16550pIx));
int i4 = q + 101;
p = i4 % 128;
if (i4 % 2 != 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
/* JADX INFO: Access modifiers changed from: package-private */
/* renamed from: com.scb.phone.view.fragment.chequemanagement.chequestatus.ChequeStatusFragment$4, reason: invalid class name */
/* loaded from: classes5.dex */
public static /* synthetic */ class AnonymousClass4 {
static final int[] c;
static {
int[] iArr = new int[EnumC16550pIx.values().length];
c = iArr;
try {
iArr[EnumC16550pIx.ALL.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
c[EnumC16550pIx.PAID.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
c[EnumC16550pIx.RETURN.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
c[EnumC16550pIx.PENDING.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
}
}
private static int e(EnumC16550pIx enumC16550pIx) {
int i = 2 % 2;
int i2 = q + 47;
p = i2 % 128;
if (i2 % 2 == 0) {
int[] iArr = AnonymousClass4.c;
throw null;
}
int[] iArr2 = AnonymousClass4.c;
if (enumC16550pIx == null) {
int i3 = q + 45;
p = i3 % 128;
int i4 = i3 % 2;
enumC16550pIx = EnumC16550pIx.PENDING;
int i5 = p + 33;
q = i5 % 128;
int i6 = i5 % 2;
}
int i7 = iArr2[enumC16550pIx.ordinal()];
if (i7 == 1) {
return R.drawable.shape_circle_cheque_purple;
}
int i8 = q;
int i9 = i8 + 101;
p = i9 % 128;
int i10 = i9 % 2;
if (i7 == 2) {
return R.drawable.shape_circle_cheque_green;
}
if (i7 == 3) {
return R.drawable.shape_circle_cheque_red;
}
int i11 = i8 + 23;
p = i11 % 128;
if (i11 % 2 != 0) {
return R.drawable.shape_circle_cheque_purple;
}
int i12 = 40 / 0;
return R.drawable.shape_circle_cheque_purple;
}
private void k() {
int i = 2 % 2;
int i2 = p + 103;
q = i2 % 128;
if (i2 % 2 != 0) {
this.recyclerView.setVisibility(18);
this.viewRoot.setVisibility(0);
this.errorList.setVisibility(1);
this.tvNoCheque.setVisibility(60);
} else {
this.recyclerView.setVisibility(8);
this.viewRoot.setVisibility(0);
this.errorList.setVisibility(0);
this.tvNoCheque.setVisibility(8);
}
int i3 = p + 23;
q = i3 % 128;
if (i3 % 2 == 0) {
return;
}
Object obj = null;
obj.hashCode();
throw null;
}
private void m() {
int i = 2 % 2;
int i2 = q + 25;
p = i2 % 128;
if (i2 % 2 == 0) {
this.recyclerView.setVisibility(99);
this.viewRoot.setVisibility(1);
this.errorList.setVisibility(22);
this.tvNoCheque.setVisibility(1);
} else {
this.recyclerView.setVisibility(8);
this.viewRoot.setVisibility(0);
this.errorList.setVisibility(8);
this.tvNoCheque.setVisibility(0);
}
int i3 = p + 63;
q = i3 % 128;
int i4 = i3 % 2;
}
private void i() {
int i = 2 % 2;
int i2 = p + 97;
q = i2 % 128;
int i3 = i2 % 2;
this.viewRoot.setVisibility(8);
int i4 = q + 33;
p = i4 % 128;
int i5 = i4 % 2;
}
private static /* synthetic */ Object d(Object[] objArr) {
byte b = 0;
ChequeStatusFragment chequeStatusFragment = (ChequeStatusFragment) objArr[0];
int i = 2 % 2;
Object obj = null;
if (!((Boolean) objArr[1]).booleanValue()) {
C3455axq c3455axq = chequeStatusFragment.presenter;
int i2 = chequeStatusFragment.k;
c3455axq.b.a(C3455axq.b(c3455axq.b(i2), chequeStatusFragment.c));
C3455axq.Sts sts = c3455axq.c;
if (sts != null) {
int i3 = q + 37;
p = i3 % 128;
int i4 = i3 % 2;
sts.dispose();
}
C3455axq.Sts sts2 = new C3455axq.Sts(c3455axq, b);
c3455axq.c = sts2;
Say say = c3455axq.b;
say.d(say.i, sts2);
return null;
}
int i5 = p + 105;
q = i5 % 128;
if (i5 % 2 != 0) {
C3455axq c3455axq2 = chequeStatusFragment.presenter;
int i6 = chequeStatusFragment.k;
c3455axq2.b.e(C3455axq.b(c3455axq2.b(i6), chequeStatusFragment.c));
C3455axq.Sts sts3 = c3455axq2.c;
obj.hashCode();
throw null;
}
C3455axq c3455axq3 = chequeStatusFragment.presenter;
int i7 = chequeStatusFragment.k;
c3455axq3.b.e(C3455axq.b(c3455axq3.b(i7), chequeStatusFragment.c));
C3455axq.Sts sts4 = c3455axq3.c;
if (sts4 != null) {
sts4.dispose();
}
C3455axq.Sts sts5 = new C3455axq.Sts(c3455axq3, b);
c3455axq3.c = sts5;
Say say2 = c3455axq3.b;
say2.d(say2.i, sts5);
int i8 = p + 19;
q = i8 % 128;
if (i8 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
private void d(boolean z) {
YE ye;
int i = 2 % 2;
if (z) {
int i2 = q + 17;
p = i2 % 128;
int i3 = i2 % 2;
ye = YE.CHEQUE_STATUS_RECEIVED_FUNCTION;
} else {
ye = YE.CHEQUE_STATUS_ISSUED_FUNCTION;
}
C1171Xc.IeS ieS = new C1171Xc.IeS(ye);
C1171Xc c1171Xc = ieS.c;
c1171Xc.a = false;
c1171Xc.b = true;
c1171Xc.j = true;
c1171Xc.g = true;
ieS.c.j = false;
ieS.c.g = false;
ieS.c.b = false;
C1171Xc c1171Xc2 = ieS.c;
AbstractC13482fbE a = getChildFragmentManager().a();
a.b(R.id.fragment_account_source_select, AccountSourceSelectFragment.b(c1171Xc2), null, 2);
a.b();
int i4 = q + 101;
p = i4 % 128;
if (i4 % 2 == 0) {
throw null;
}
}
private void b(EnumC12147esi enumC12147esi) {
int i = 2 % 2;
if (enumC12147esi != EnumC12147esi.RECEIVED) {
this.tvTopAccountLbl.setText(R.string.cheque_lbl_from);
this.tvDownAccountLbl.setText(R.string.cheque_lbl_to);
int i2 = q + 25;
p = i2 % 128;
int i3 = i2 % 2;
return;
}
int i4 = p + 1;
q = i4 % 128;
if (i4 % 2 == 0) {
this.tvTopAccountLbl.setText(R.string.cheque_lbl_to);
this.tvDownAccountLbl.setText(R.string.cheque_lbl_from);
} else {
this.tvTopAccountLbl.setText(R.string.cheque_lbl_to);
this.tvDownAccountLbl.setText(R.string.cheque_lbl_from);
Object obj = null;
obj.hashCode();
throw null;
}
}
private void e(List<String> list) {
int i = 2 % 2;
String format = new SimpleDateFormat("MMM").format(Calendar.getInstance().getTime());
for (int i2 = 0; i2 < list.size(); i2++) {
int i3 = q + 87;
p = i3 % 128;
if (i3 % 2 == 0) {
format.contains(list.get(i2));
Object obj = null;
obj.hashCode();
throw null;
}
if (format.contains(list.get(i2))) {
int i4 = p + 89;
q = i4 % 128;
int i5 = i4 % 2;
this.k = i2;
}
}
}
private static /* synthetic */ Object c(Object[] objArr) {
ChequeStatusFragment chequeStatusFragment = (ChequeStatusFragment) objArr[0];
WW ww = (WW) objArr[1];
int i = 2 % 2;
int i2 = q + 41;
p = i2 % 128;
int i3 = i2 % 2;
chequeStatusFragment.b(ww);
if (i3 == 0) {
int i4 = 31 / 0;
}
int i5 = q + 45;
p = i5 % 128;
Object obj = null;
if (i5 % 2 != 0) {
return null;
}
obj.hashCode();
throw null;
}
private static /* synthetic */ Object g(Object[] objArr) {
((Boolean) objArr[1]).booleanValue();
int i = 2 % 2;
int i2 = p + 53;
q = i2 % 128;
Object obj = null;
if (i2 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
private static /* synthetic */ Object a(Object[] objArr) {
ChequeStatusFragment chequeStatusFragment = (ChequeStatusFragment) objArr[0];
NestedScrollView nestedScrollView = (NestedScrollView) objArr[1];
int intValue = ((Number) objArr[2]).intValue();
int intValue2 = ((Number) objArr[3]).intValue();
int i = 2 % 2;
int i2 = p + 119;
q = i2 % 128;
int i3 = i2 % 2;
chequeStatusFragment.c(nestedScrollView, intValue, intValue2);
if (i3 != 0) {
int i4 = 93 / 0;
}
int i5 = p + 23;
q = i5 % 128;
Object obj = null;
if (i5 % 2 == 0) {
return null;
}
obj.hashCode();
throw null;
}
private static /* synthetic */ Object e(Object[] objArr) {
ChequeStatusFragment chequeStatusFragment = (ChequeStatusFragment) objArr[0];
int i = 2 % 2;
int i2 = q + 77;
int i3 = i2 % 128;
p = i3;
int i4 = i2 % 2;
chequeStatusFragment.h = true;
int i5 = i3 + 13;
q = i5 % 128;
if (i5 % 2 == 0) {
return null;
}
throw null;
}
@Override // com.scb.phone.view.fragment.transferandpay.AccountSourceSelectFragment.Sts
public final void e_(boolean z) {
b(new Object[]{this, Boolean.valueOf(z)}, -2107488728, 2107488734, System.identityHashCode(this));
}
@Override // com.scb.phone.view.fragment.transferandpay.AccountSourceSelectFragment.Sts
public final void a(WW ww) {
b(new Object[]{this, ww}, 1064564267, -1064564267, System.identityHashCode(this));
}
private void l() {
b(new Object[]{this}, 1176532511, -1176532509, System.identityHashCode(this));
}
private void h() {
b(new Object[]{this}, -644298562, 644298563, System.identityHashCode(this));
}
private void a(boolean z) {
b(new Object[]{this, Boolean.valueOf(z)}, -1570379404, 1570379407, System.identityHashCode(this));
}
static /* synthetic */ void b(ChequeStatusFragment chequeStatusFragment) {
int i = 2 % 2;
int i2 = p + 71;
q = i2 % 128;
if (i2 % 2 == 0) {
b(new Object[]{chequeStatusFragment}, -644298562, 644298563, System.identityHashCode(chequeStatusFragment));
} else {
b(new Object[]{chequeStatusFragment}, -644298562, 644298563, System.identityHashCode(chequeStatusFragment));
throw null;
}
}
static /* bridge */ /* synthetic */ void c(ChequeStatusFragment chequeStatusFragment, int i) {
int i2 = 2 % 2;
int i3 = q + 115;
int i4 = i3 % 128;
p = i4;
int i5 = i3 % 2;
chequeStatusFragment.k = i;
int i6 = i4 + 73;
q = i6 % 128;
if (i6 % 2 != 0) {
int i7 = 20 / 0;
}
}
static /* bridge */ /* synthetic */ boolean a(ChequeStatusFragment chequeStatusFragment) {
int i = 2 % 2;
int i2 = p;
int i3 = i2 + 67;
q = i3 % 128;
int i4 = i3 % 2;
boolean z = chequeStatusFragment.h;
if (i4 != 0) {
int i5 = 86 / 0;
}
int i6 = i2 + 49;
q = i6 % 128;
if (i6 % 2 == 0) {
return z;
}
throw null;
}
public static /* synthetic */ void d(ChequeStatusFragment chequeStatusFragment) {
int i = 2 % 2;
int i2 = q + 113;
p = i2 % 128;
int i3 = i2 % 2;
chequeStatusFragment.g();
int i4 = q + 1;
p = i4 % 128;
int i5 = i4 % 2;
}
}