what-the-bank/sources/com/scb/phone/view/fragment/deposit/DepositDetailTransactionFra...

887 lines
32 KiB
Java

package com.scb.phone.view.fragment.deposit;
import android.content.Context;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;
import androidx.appcompat.widget.AppCompatTextView;
import androidx.appcompat.widget.Toolbar;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.RecyclerView;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.deposit.DepositDetailActivity;
import com.scb.phone.view.adapter.deposit.DepositTransactionAdapter;
import com.scb.phone.view.fragment.deposit.DepositDetailTransactionFragment;
import java.util.Iterator;
import java.util.List;
import o.AbstractC0570Js;
import o.AbstractC0577Jw;
import o.AbstractC15502gsH;
import o.C0386Fk;
import o.C0693Mj;
import o.C14957gcv;
import o.C15751iLP;
import o.C16148leh;
import o.C16696qSH;
import o.InterfaceC13391fZD;
import o.NoP;
import o.QDr;
import o.aNH;
import o.cYP;
import o.irv;
import o.kIT;
import o.qeC;
import o.ury;
import org.threeten.bp.OffsetDateTime;
/* loaded from: classes5.dex */
public final class DepositDetailTransactionFragment extends Hilt_DepositDetailTransactionFragment implements cYP.jbe, C16148leh.HBt, C16148leh.IeS, DepositTransactionAdapter.HBt {
public String c;
public QDr d;
@InterfaceC13391fZD
public aNH depositTransactionPresenter;
public boolean f;
public Handler g;
public boolean h;
public C16148leh i;
public DepositTransactionAdapter j;
private final C16696qSH k = new C16696qSH();
private RecyclerView.Sts<?> l;
/* JADX WARN: Code restructure failed: missing block: B:29:0x0046, code lost:
if ((r8 instanceof android.os.Parcelable) == false) goto L13;
*/
/* JADX WARN: Removed duplicated region for block: B:11:0x0057 */
/* JADX WARN: Removed duplicated region for block: B:14:0x0060 */
/* JADX WARN: Removed duplicated region for block: B:20:0x0080 */
/* JADX WARN: Removed duplicated region for block: B:23:0x00b0 */
/* JADX WARN: Removed duplicated region for block: B:27:0x005a */
@Override // androidx.fragment.app.Fragment
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void onViewCreated(android.view.View r7, android.os.Bundle r8) {
/*
r6 = this;
java.lang.String r0 = ""
o.C14957gcv.e(r7, r0)
super.onViewCreated(r7, r8)
o.aNH r7 = r6.depositTransactionPresenter
r1 = 0
if (r7 == 0) goto Le
goto L12
Le:
o.C14957gcv.a(r0)
r7 = r1
L12:
r2 = r6
o.cYp r2 = (o.InterfaceC6638cYp) r2
r7.e(r2)
android.os.Handler r7 = new android.os.Handler
android.os.Looper r2 = android.os.Looper.getMainLooper()
r7.<init>(r2)
r6.g = r7
androidx.recyclerview.widget.LinearLayoutManager r7 = new androidx.recyclerview.widget.LinearLayoutManager
r6.getContext()
r2 = 1
r3 = 0
r7.<init>(r2, r3)
if (r8 == 0) goto L48
int r2 = android.os.Build.VERSION.SDK_INT
r4 = 33
java.lang.String r5 = "RecyclerViewExpandableItemManager"
if (r2 < r4) goto L40
java.lang.Class<android.os.Parcelable> r2 = android.os.Parcelable.class
java.lang.Object r8 = r8.getParcelable(r5, r2)
android.os.Parcelable r8 = (android.os.Parcelable) r8
goto L49
L40:
android.os.Parcelable r8 = r8.getParcelable(r5)
boolean r2 = r8 instanceof android.os.Parcelable
if (r2 != 0) goto L49
L48:
r8 = r1
L49:
o.leh r2 = new o.leh
r2.<init>(r8)
r6.i = r2
r8 = r6
o.leh$HBt r8 = (o.C16148leh.HBt) r8
o.kIT r4 = r2.j
if (r4 == 0) goto L5a
r4.e = r8
goto L5c
L5a:
r2.b = r8
L5c:
o.leh r8 = r6.i
if (r8 == 0) goto L6c
r2 = r6
o.leh$IeS r2 = (o.C16148leh.IeS) r2
o.kIT r4 = r8.j
if (r4 == 0) goto L6a
r4.b = r2
goto L6c
L6a:
r8.a = r2
L6c:
com.scb.phone.view.adapter.deposit.DepositTransactionAdapter r8 = new com.scb.phone.view.adapter.deposit.DepositTransactionAdapter
android.content.Context r2 = r6.getContext()
o.leh r4 = r6.i
r5 = r6
com.scb.phone.view.adapter.deposit.DepositTransactionAdapter$HBt r5 = (com.scb.phone.view.adapter.deposit.DepositTransactionAdapter.HBt) r5
r8.<init>(r2, r4, r5)
r6.j = r8
o.leh r2 = r6.i
if (r2 == 0) goto L86
androidx.recyclerview.widget.RecyclerView$Sts r8 = (androidx.recyclerview.widget.RecyclerView.Sts) r8
androidx.recyclerview.widget.RecyclerView$Sts r1 = r2.d(r8)
L86:
r6.l = r1
o.dZm r8 = new o.dZm
r8.<init>()
r8.setSupportsChangeAnimations(r3)
o.QDr r1 = r6.d
o.C14957gcv.e(r1)
androidx.recyclerview.widget.RecyclerView r1 = r1.c
androidx.recyclerview.widget.RecyclerView$tOB r7 = (androidx.recyclerview.widget.RecyclerView.tOB) r7
r1.setLayoutManager(r7)
androidx.recyclerview.widget.RecyclerView$Sts<?> r7 = r6.l
r1.setAdapter(r7)
androidx.recyclerview.widget.RecyclerView$jbe r8 = (androidx.recyclerview.widget.RecyclerView.jbe) r8
r1.setItemAnimator(r8)
r1.setHasFixedSize(r3)
r1.setNestedScrollingEnabled(r3)
o.leh r7 = r6.i
if (r7 == 0) goto Lb3
r7.b(r1)
Lb3:
o.QDr r7 = r6.d
o.C14957gcv.e(r7)
androidx.appcompat.widget.Toolbar r7 = r7.d
r8 = 2131689485(0x7f0f000d, float:1.9007987E38)
r7.a(r8)
o.QDr r7 = r6.d
o.C14957gcv.e(r7)
android.widget.TextView r7 = r7.f
o.C14957gcv.c(r7, r0)
android.view.View r7 = (android.view.View) r7
o.C14957gcv.e(r7, r0)
r8 = 8
r7.setVisibility(r8)
return
*/
throw new UnsupportedOperationException("Method not decompiled: com.scb.phone.view.fragment.deposit.DepositDetailTransactionFragment.onViewCreated(android.view.View, android.os.Bundle):void");
}
@Override // o.cYP.jbe
public final void b(String str, Boolean bool) {
aq_();
QDr qDr = this.d;
C14957gcv.e(qDr);
RelativeLayout relativeLayout = qDr.b.d;
C14957gcv.c(relativeLayout, "");
RelativeLayout relativeLayout2 = relativeLayout;
C14957gcv.e(relativeLayout2, "");
relativeLayout2.setVisibility(8);
TextView textView = qDr.h;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
qDr.h.setText(str);
ConstraintLayout constraintLayout = qDr.a;
C14957gcv.c(constraintLayout, "");
ConstraintLayout constraintLayout2 = constraintLayout;
C14957gcv.e(constraintLayout2, "");
constraintLayout2.setVisibility(8);
Toolbar toolbar = qDr.d;
C14957gcv.c(toolbar, "");
Toolbar toolbar2 = toolbar;
C14957gcv.e(toolbar2, "");
toolbar2.setVisibility(0);
RecyclerView recyclerView = qDr.c;
C14957gcv.c(recyclerView, "");
RecyclerView recyclerView2 = recyclerView;
C14957gcv.e(recyclerView2, "");
recyclerView2.setVisibility(8);
qDr.d.jO_().getItem(0).setVisible(true);
if (bool != null) {
qDr.d.jO_().getItem(0).setEnabled(!bool.booleanValue());
}
}
@Override // o.cYP.jbe
public final void e(String str, String str2) {
aq_();
QDr qDr = this.d;
C14957gcv.e(qDr);
RelativeLayout relativeLayout = qDr.b.d;
C14957gcv.c(relativeLayout, "");
RelativeLayout relativeLayout2 = relativeLayout;
C14957gcv.e(relativeLayout2, "");
relativeLayout2.setVisibility(8);
TextView textView = qDr.h;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
ConstraintLayout constraintLayout = qDr.a;
C14957gcv.c(constraintLayout, "");
ConstraintLayout constraintLayout2 = constraintLayout;
C14957gcv.e(constraintLayout2, "");
constraintLayout2.setVisibility(0);
qDr.g.setText(str);
qDr.j.setText(str2);
Toolbar toolbar = qDr.d;
C14957gcv.c(toolbar, "");
Toolbar toolbar2 = toolbar;
C14957gcv.e(toolbar2, "");
toolbar2.setVisibility(0);
RecyclerView recyclerView = qDr.c;
C14957gcv.c(recyclerView, "");
RecyclerView recyclerView2 = recyclerView;
C14957gcv.e(recyclerView2, "");
recyclerView2.setVisibility(8);
qDr.d.jO_().getItem(0).setVisible(true);
qDr.d.jO_().getItem(0).setEnabled(false);
}
@Override // o.cYP.jbe
public final void a() {
QDr qDr = this.d;
C14957gcv.e(qDr);
TextView textView = qDr.f;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
String string = getString(R.string.deposit_detail_no_transactions);
C14957gcv.c((Object) string, "");
aNH anh = this.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.e(string);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onSaveInstanceState(Bundle bundle) {
C14957gcv.e(bundle, "");
super.onSaveInstanceState(bundle);
C16148leh c16148leh = this.i;
if (c16148leh != null) {
bundle.putParcelable("RecyclerViewExpandableItemManager", c16148leh.Oa_());
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroyView() {
aNH anh = this.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.w_();
C16148leh c16148leh = this.i;
if (c16148leh != null) {
c16148leh.b();
}
this.i = null;
QDr qDr = this.d;
C14957gcv.e(qDr);
qDr.c.setItemAnimator(null);
QDr qDr2 = this.d;
C14957gcv.e(qDr2);
qDr2.c.setAdapter(null);
RecyclerView.Sts<?> sts = this.l;
if (sts != null) {
ury.d(sts);
}
this.l = null;
this.g = null;
this.d = null;
super.onDestroyView();
}
@Override // o.cYP.jbe
public final void f() {
QDr qDr = this.d;
C14957gcv.e(qDr);
TextView textView = qDr.h;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
qDr.b.b.setText(getResources().getString(R.string.custom_empty_title));
qDr.b.b.setGravity(8388611);
qDr.b.e.setText(getResources().getString(R.string.custom_empty_description));
RelativeLayout relativeLayout = qDr.b.d;
C14957gcv.c(relativeLayout, "");
RelativeLayout relativeLayout2 = relativeLayout;
C14957gcv.e(relativeLayout2, "");
relativeLayout2.setVisibility(0);
ImageView imageView = qDr.b.c;
C14957gcv.c(imageView, "");
ImageView imageView2 = imageView;
C14957gcv.e(imageView2, "");
imageView2.setVisibility(0);
}
@Override // com.scb.phone.view.adapter.deposit.DepositTransactionAdapter.HBt
public final void e(int i, int i2) {
b(i, i2);
}
@Override // com.scb.phone.view.adapter.deposit.DepositTransactionAdapter.HBt
public final void d(int i, String str) {
C14957gcv.e(str, "");
aNH anh = this.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
aNH.a(new Object[]{anh, Integer.valueOf(i), str}, 1681402807, -1681402807, i);
}
@Override // o.cYP.jbe
public final void d(C0693Mj c0693Mj) {
C14957gcv.e(c0693Mj, "");
e(c0693Mj);
}
@Override // o.cYP.jbe
public final void e() {
int i;
DepositTransactionAdapter depositTransactionAdapter = this.j;
if (depositTransactionAdapter == null || (i = depositTransactionAdapter.e) < 0) {
return;
}
AbstractC0577Jw abstractC0577Jw = depositTransactionAdapter.h.get(i);
abstractC0577Jw.c = depositTransactionAdapter.a;
DepositTransactionAdapter.b(abstractC0577Jw);
depositTransactionAdapter.notifyDataSetChanged();
depositTransactionAdapter.e = -1;
depositTransactionAdapter.a = "";
}
@Override // o.cYP.jbe
public final void d() {
int i;
DepositTransactionAdapter depositTransactionAdapter = this.j;
if (depositTransactionAdapter == null || (i = depositTransactionAdapter.e) < 0) {
return;
}
DepositTransactionAdapter.b(depositTransactionAdapter.h.get(i));
depositTransactionAdapter.notifyDataSetChanged();
depositTransactionAdapter.e = -1;
depositTransactionAdapter.a = "";
}
@Override // o.cYP.jbe
public final void e(String str) {
C14957gcv.e(str, "");
this.k.d("account_type", str);
C16696qSH c16696qSH = this.k;
if (getActivity() != null) {
c16696qSH.c(((BaseActivity) getActivity()).scbAnalytics, "accountsummary_depositdetails");
}
}
@Override // o.cYP.jbe
public final void d(String str) {
C14957gcv.e(str, "");
this.k.d("save_note", str);
C16696qSH c16696qSH = this.k;
if (getActivity() != null) {
c16696qSH.c(((BaseActivity) getActivity()).scbAnalytics, "annotation_save");
}
}
@Override // o.cYP.jbe
public final void d(C0386Fk c0386Fk) {
C14957gcv.e(c0386Fk, "");
QDr qDr = this.d;
C14957gcv.e(qDr);
qDr.i.setText(R.string.deposit_details_txn_header_saving_current);
aNH anh = this.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.b(c0386Fk.s, c0386Fk.j && !C14957gcv.b((Object) c0386Fk.d, (Object) "DORMANT"));
}
@Override // o.cYP.jbe
public final void c() {
QDr qDr = this.d;
C14957gcv.e(qDr);
this.f = false;
TextView textView = qDr.f;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
qDr.d.jO_().getItem(0).setVisible(false);
qDr.i.setText(R.string.deposit_details_txn_header_fixed_long_term);
}
@Override // o.cYP.jbe
public final void b(List<? extends AbstractC0577Jw> list, String str) {
C14957gcv.e(list, "");
String str2 = this.c;
if (str2 == null || !C14957gcv.b((Object) str, (Object) str2)) {
return;
}
aq_();
if (isDetached()) {
return;
}
QDr qDr = this.d;
C14957gcv.e(qDr);
Toolbar toolbar = qDr.d;
C14957gcv.c(toolbar, "");
Toolbar toolbar2 = toolbar;
C14957gcv.e(toolbar2, "");
toolbar2.setVisibility(0);
aNH anh = this.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.c(list);
}
@Override // o.cYP.jbe
public final void h() {
QDr qDr = this.d;
C14957gcv.e(qDr);
TextView textView = qDr.h;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
RecyclerView recyclerView = qDr.c;
C14957gcv.c(recyclerView, "");
RecyclerView recyclerView2 = recyclerView;
C14957gcv.e(recyclerView2, "");
recyclerView2.setVisibility(8);
}
@Override // o.cYP.jbe
public final void d(List<? extends AbstractC0577Jw> list) {
C16148leh c16148leh;
kIT kit;
C14957gcv.e(list, "");
QDr qDr = this.d;
C14957gcv.e(qDr);
TextView textView = qDr.h;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
RecyclerView recyclerView = qDr.c;
C14957gcv.c(recyclerView, "");
RecyclerView recyclerView2 = recyclerView;
C14957gcv.e(recyclerView2, "");
recyclerView2.setVisibility(0);
qDr.c.setFocusable(false);
DepositTransactionAdapter depositTransactionAdapter = this.j;
if (depositTransactionAdapter != null) {
depositTransactionAdapter.h.clear();
depositTransactionAdapter.h.addAll(list);
depositTransactionAdapter.notifyDataSetChanged();
}
int size = list.size();
for (int i = 0; i < size; i++) {
if (list.get(i).f && (c16148leh = this.i) != null && (kit = c16148leh.j) != null) {
kit.a(i, false);
}
}
qDr.c.setFocusable(true);
}
@Override // o.C16148leh.HBt
public final void d(int i) {
AbstractC0577Jw c = c(i);
if (c != null) {
c.f = true;
}
b(i, 0);
}
@Override // o.C16148leh.IeS
public final void e(int i) {
AbstractC0577Jw c = c(i);
if (c != null) {
c.f = false;
}
b(i, 0);
}
@Override // o.cYP.jbe
public final void d(final List<? extends AbstractC0577Jw> list, String str) {
String str2;
C14957gcv.e(list, "");
final DepositTransactionAdapter depositTransactionAdapter = this.j;
Handler handler = this.g;
if (isDetached() || handler == null || this.j == null || (str2 = this.c) == null || !C14957gcv.b((Object) str, (Object) str2)) {
return;
}
handler.post(new Runnable(depositTransactionAdapter, list) { // from class: o.eRu
private DepositTransactionAdapter a;
private List b;
@Override // java.lang.Runnable
public final void run() {
DepositDetailTransactionFragment.a(this.a, this.b);
}
{
this.a = depositTransactionAdapter;
this.b = list;
}
});
}
@Override // o.cYP.jbe
public final void b() {
v();
QDr qDr = this.d;
C14957gcv.e(qDr);
ConstraintLayout constraintLayout = qDr.a;
C14957gcv.c(constraintLayout, "");
ConstraintLayout constraintLayout2 = constraintLayout;
C14957gcv.e(constraintLayout2, "");
constraintLayout2.setVisibility(8);
TextView textView = qDr.h;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
Toolbar toolbar = qDr.d;
C14957gcv.c(toolbar, "");
Toolbar toolbar2 = toolbar;
C14957gcv.e(toolbar2, "");
toolbar2.setVisibility(8);
RecyclerView recyclerView = qDr.c;
C14957gcv.c(recyclerView, "");
RecyclerView recyclerView2 = recyclerView;
C14957gcv.e(recyclerView2, "");
recyclerView2.setVisibility(8);
}
@Override // o.cYP.jbe
public final void g() {
QDr qDr = this.d;
C14957gcv.e(qDr);
TextView textView = qDr.f;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(8);
Toolbar toolbar = qDr.d;
C14957gcv.c(toolbar, "");
Toolbar toolbar2 = toolbar;
C14957gcv.e(toolbar2, "");
toolbar2.setVisibility(8);
RecyclerView recyclerView = qDr.c;
C14957gcv.c(recyclerView, "");
RecyclerView recyclerView2 = recyclerView;
C14957gcv.e(recyclerView2, "");
recyclerView2.setVisibility(8);
RelativeLayout relativeLayout = qDr.b.d;
C14957gcv.c(relativeLayout, "");
RelativeLayout relativeLayout2 = relativeLayout;
C14957gcv.e(relativeLayout2, "");
relativeLayout2.setVisibility(8);
String string = getString(R.string.deposit_transaction_custom_error_contact_call_center);
C14957gcv.c((Object) string, "");
aNH anh = this.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.e(string);
}
private final void b(int i, int i2) {
int top;
QDr qDr = this.d;
C14957gcv.e(qDr);
int i3 = i + 1;
if (i3 >= qDr.c.getChildCount()) {
top = qDr.c.getTop() + qDr.c.getHeight() + i2;
} else {
top = qDr.c.getTop() + qDr.c.getChildAt(i3).getTop() + i2;
}
DepositDetailActivity depositDetailActivity = (DepositDetailActivity) getActivity();
if (depositDetailActivity != null) {
depositDetailActivity.b = top;
}
}
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
public static /* synthetic */ void a(DepositTransactionAdapter depositTransactionAdapter, List list) {
C14957gcv.e(list, "");
if (depositTransactionAdapter != null) {
depositTransactionAdapter.e(false, null);
}
if (depositTransactionAdapter == null || list.isEmpty()) {
return;
}
int size = depositTransactionAdapter.h.size();
int size2 = list.size();
depositTransactionAdapter.h.addAll(list);
depositTransactionAdapter.notifyItemRangeInserted(size, size2);
depositTransactionAdapter.notifyItemChanged(size - 1);
}
public static /* synthetic */ boolean arO_(final DepositDetailTransactionFragment depositDetailTransactionFragment, MenuItem menuItem) {
OffsetDateTime now;
C14957gcv.e(depositDetailTransactionFragment, "");
C14957gcv.e(menuItem, "");
if (menuItem.getItemId() != R.id.menu_filter) {
return false;
}
QDr qDr = depositDetailTransactionFragment.d;
C14957gcv.e(qDr);
View findViewById = qDr.d.findViewById(R.id.menu_filter);
Context context = depositDetailTransactionFragment.getContext();
aNH anh = null;
irv irvVar = context != null ? new irv(context, findViewById) : null;
if (irvVar == null) {
return true;
}
NoP noP = irvVar.c;
C14957gcv.c(noP, "");
try {
now = OffsetDateTime.now();
} catch (RuntimeException unused) {
now = OffsetDateTime.now(AbstractC15502gsH.of("UTC"));
}
aNH anh2 = depositDetailTransactionFragment.depositTransactionPresenter;
if (anh2 != null) {
anh = anh2;
} else {
C14957gcv.a("");
}
C14957gcv.c(now, "");
Iterator<T> it = anh.b(now).iterator();
while (it.hasNext()) {
noP.add(0, 0, noP.size(), (String) it.next());
}
irvVar.b = new irv.RVV(depositDetailTransactionFragment) { // from class: o.eRt
private DepositDetailTransactionFragment b;
@Override // o.irv.RVV
public final boolean avK_(MenuItem menuItem2) {
return DepositDetailTransactionFragment.arP_(this.b, menuItem2);
}
{
this.b = depositDetailTransactionFragment;
}
};
irvVar.e.e();
return true;
}
public static /* synthetic */ void a(DepositDetailTransactionFragment depositDetailTransactionFragment) {
C14957gcv.e(depositDetailTransactionFragment, "");
aNH anh = depositDetailTransactionFragment.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.a();
}
public static /* synthetic */ void e(DepositDetailTransactionFragment depositDetailTransactionFragment, AbstractC0570Js abstractC0570Js) {
C14957gcv.e(depositDetailTransactionFragment, "");
C14957gcv.e(abstractC0570Js, "");
aNH anh = depositDetailTransactionFragment.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.d(abstractC0570Js);
}
public static /* synthetic */ void a(DepositTransactionAdapter depositTransactionAdapter, final DepositDetailTransactionFragment depositDetailTransactionFragment) {
C14957gcv.e(depositDetailTransactionFragment, "");
depositTransactionAdapter.e(true, new DepositTransactionAdapter.Sts(depositDetailTransactionFragment) { // from class: o.eRv
private DepositDetailTransactionFragment b;
@Override // com.scb.phone.view.adapter.deposit.DepositTransactionAdapter.Sts
public final void a(boolean z) {
DepositDetailTransactionFragment.d(this.b, z);
}
{
this.b = depositDetailTransactionFragment;
}
});
}
public static /* synthetic */ void d(DepositDetailTransactionFragment depositDetailTransactionFragment, boolean z) {
DepositTransactionAdapter depositTransactionAdapter;
C14957gcv.e(depositDetailTransactionFragment, "");
if (!z || (depositTransactionAdapter = depositDetailTransactionFragment.j) == null) {
return;
}
int size = depositTransactionAdapter.h.size();
aNH anh = depositDetailTransactionFragment.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.b(true, size - 1);
}
public static /* synthetic */ boolean arP_(DepositDetailTransactionFragment depositDetailTransactionFragment, MenuItem menuItem) {
C14957gcv.e(depositDetailTransactionFragment, "");
C14957gcv.e(menuItem, "");
aNH anh = depositDetailTransactionFragment.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.b(menuItem.getOrder());
QDr qDr = depositDetailTransactionFragment.d;
C14957gcv.e(qDr);
qDr.f.setText(menuItem.getTitle());
return true;
}
private final AbstractC0577Jw c(int i) {
DepositTransactionAdapter depositTransactionAdapter = this.j;
AbstractC0577Jw abstractC0577Jw = null;
List<AbstractC0577Jw> list = depositTransactionAdapter != null ? depositTransactionAdapter.h : null;
if (list != null && i < list.size()) {
abstractC0577Jw = list.get(i);
}
return abstractC0577Jw;
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559557, viewGroup, false);
int i = R.id.cs_layout_remark_account;
ConstraintLayout constraintLayout = (ConstraintLayout) qeC.e(inflate, R.id.cs_layout_remark_account);
if (constraintLayout != null) {
i = R.id.custom_empty_card;
View e = qeC.e(inflate, R.id.custom_empty_card);
if (e != null) {
C15751iLP e2 = C15751iLP.e(e);
i = R.id.iv_remark_account_error;
ImageView imageView = (ImageView) qeC.e(inflate, R.id.iv_remark_account_error);
if (imageView != null) {
i = R.id.rv_transactions;
RecyclerView recyclerView = (RecyclerView) qeC.e(inflate, R.id.rv_transactions);
if (recyclerView != null) {
i = R.id.toolbar_txn_header;
Toolbar toolbar = (Toolbar) qeC.e(inflate, R.id.toolbar_txn_header);
if (toolbar != null) {
i = R.id.tv_message;
TextView textView = (TextView) qeC.e(inflate, R.id.tv_message);
if (textView != null) {
i = R.id.tv_remark_account_message;
AppCompatTextView appCompatTextView = (AppCompatTextView) qeC.e(inflate, R.id.tv_remark_account_message);
if (appCompatTextView != null) {
i = R.id.tv_remark_account_title;
AppCompatTextView appCompatTextView2 = (AppCompatTextView) qeC.e(inflate, R.id.tv_remark_account_title);
if (appCompatTextView2 != null) {
i = R.id.tv_txn_header;
TextView textView2 = (TextView) qeC.e(inflate, R.id.tv_txn_header);
if (textView2 != null) {
i = R.id.tv_txn_month_header;
TextView textView3 = (TextView) qeC.e(inflate, R.id.tv_txn_month_header);
if (textView3 != null) {
QDr qDr = new QDr((LinearLayout) inflate, constraintLayout, e2, imageView, recyclerView, toolbar, textView, appCompatTextView, appCompatTextView2, textView2, textView3);
this.d = qDr;
C14957gcv.e(qDr);
LinearLayout linearLayout = qDr.e;
C14957gcv.c(linearLayout, "");
return linearLayout;
}
}
}
}
}
}
}
}
}
}
throw new NullPointerException("Missing required view with ID: ".concat(inflate.getResources().getResourceName(i)));
}
@Override // o.cYP.jbe
public final void i() {
QDr qDr = this.d;
C14957gcv.e(qDr);
qDr.d.setOnMenuItemClickListener(new Toolbar.HBt(this) { // from class: o.eRC
private DepositDetailTransactionFragment a;
@Override // androidx.appcompat.widget.Toolbar.HBt
public final boolean awL_(MenuItem menuItem) {
return DepositDetailTransactionFragment.arO_(this.a, menuItem);
}
{
this.a = this;
}
});
QDr qDr2 = this.d;
C14957gcv.e(qDr2);
this.f = true;
qDr2.f.setText("");
TextView textView = qDr2.f;
C14957gcv.c(textView, "");
TextView textView2 = textView;
C14957gcv.e(textView2, "");
textView2.setVisibility(0);
qDr2.d.jO_().getItem(0).setVisible(true);
qDr2.d.jO_().getItem(0).setEnabled(true);
aNH anh = this.depositTransactionPresenter;
if (anh == null) {
C14957gcv.a("");
anh = null;
}
anh.b();
anh.b(false, 0);
}
@Override // o.cYP.jbe
public final void c(boolean z) {
this.f = z;
}
static {
new Sts((byte) 0);
}
}