242 lines
8.3 KiB
Java
242 lines
8.3 KiB
Java
|
package com.scb.phone.view.fragment.etb;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.Menu;
|
||
|
import android.view.MenuInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.Button;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.OnClick;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.BaseActivity;
|
||
|
import com.scb.phone.view.activity.etb.EtbOtpActivity;
|
||
|
import com.scb.phone.view.custom.CustomInformationList;
|
||
|
import com.scb.phone.view.fragment.BaseFragment;
|
||
|
import java.util.List;
|
||
|
import o.C0698Mn;
|
||
|
import o.C0704Mr;
|
||
|
import o.C0710Mv;
|
||
|
import o.C16926sT;
|
||
|
import o.C4807bhD;
|
||
|
import o.C4809bhF;
|
||
|
import o.C4852bhw;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC9273dgd;
|
||
|
import o.UNo;
|
||
|
import o.ZI;
|
||
|
import o.yGw;
|
||
|
import o.yRS;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class EtbReviewInformationFragment extends Hilt_EtbReviewInformationFragment implements InterfaceC9273dgd.HBt {
|
||
|
|
||
|
@BindView
|
||
|
Button btnConfirm;
|
||
|
private UNo d = new UNo();
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C4852bhw etbReviewInformationPresenter;
|
||
|
|
||
|
@BindView
|
||
|
CustomInformationList vAccountInfo;
|
||
|
|
||
|
@BindView
|
||
|
CustomInformationList vMonthlyDeduction;
|
||
|
|
||
|
@BindView
|
||
|
CustomInformationList vOpeningDeposit;
|
||
|
|
||
|
@Override // o.InterfaceC9713dpA.HBt
|
||
|
public final boolean p() {
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9713dpA.HBt
|
||
|
public final int t() {
|
||
|
return 3;
|
||
|
}
|
||
|
|
||
|
public static EtbReviewInformationFragment e(C0698Mn c0698Mn, C0710Mv c0710Mv) {
|
||
|
Bundle bundle = new Bundle();
|
||
|
bundle.putParcelable("com.scb.phone.view.fragment.etb.ARG_ACCOUNT", c0698Mn);
|
||
|
bundle.putParcelable("ARG_ETB_REVIEW", c0710Mv);
|
||
|
EtbReviewInformationFragment etbReviewInformationFragment = new EtbReviewInformationFragment();
|
||
|
etbReviewInformationFragment.setArguments(bundle);
|
||
|
return etbReviewInformationFragment;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public void onCreate(Bundle bundle) {
|
||
|
super.onCreate(bundle);
|
||
|
setHasOptionsMenu(true);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559642, viewGroup, false);
|
||
|
inflate.setFocusableInTouchMode(true);
|
||
|
((BaseFragment) this).a = ButterKnife.c(this, inflate);
|
||
|
this.etbReviewInformationPresenter.e((C4852bhw) this);
|
||
|
if (this.etbReviewInformationPresenter != null && getArguments() != null && getArguments().containsKey("ARG_ETB_REVIEW")) {
|
||
|
C0698Mn c0698Mn = (C0698Mn) getArguments().getParcelable("com.scb.phone.view.fragment.etb.ARG_ACCOUNT");
|
||
|
this.btnConfirm.setEnabled(true);
|
||
|
C4852bhw c4852bhw = this.etbReviewInformationPresenter;
|
||
|
C0710Mv c0710Mv = (C0710Mv) getArguments().getParcelable("ARG_ETB_REVIEW");
|
||
|
String W = W();
|
||
|
C16926sT c16926sT = c4852bhw.b;
|
||
|
Object[] objArr = {c16926sT, c0698Mn, c0710Mv, Boolean.valueOf(c4852bhw.e.b.T()), null};
|
||
|
System.identityHashCode(c16926sT);
|
||
|
final List list = (List) C16926sT.e(objArr);
|
||
|
ZI.IeS ieS = new ZI.IeS(list) { // from class: o.bhG
|
||
|
private List d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9273dgd.HBt) obj).a(this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = list;
|
||
|
}
|
||
|
};
|
||
|
if (c4852bhw.f != 0) {
|
||
|
ieS.e(c4852bhw.f);
|
||
|
}
|
||
|
final List<C0704Mr> c = c4852bhw.b.c(c0710Mv, c4852bhw.e.b.T(), null);
|
||
|
ZI.IeS ieS2 = new ZI.IeS(c) { // from class: o.bhE
|
||
|
private List d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9273dgd.HBt) obj).d((List<C0704Mr>) this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = c;
|
||
|
}
|
||
|
};
|
||
|
if (c4852bhw.f != 0) {
|
||
|
ieS2.e(c4852bhw.f);
|
||
|
}
|
||
|
final List<C0704Mr> e = c4852bhw.b.e(c0710Mv, c4852bhw.e.b.T(), (String) null, c4852bhw.a.b.M());
|
||
|
ZI.IeS ieS3 = new ZI.IeS(e) { // from class: o.bhC
|
||
|
private List d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9273dgd.HBt) obj).b(this.d);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.d = e;
|
||
|
}
|
||
|
};
|
||
|
if (c4852bhw.f != 0) {
|
||
|
ieS3.e(c4852bhw.f);
|
||
|
}
|
||
|
if (c4852bhw.a(c0698Mn.c)) {
|
||
|
C4807bhD c4807bhD = new C4807bhD();
|
||
|
if (c4852bhw.f != 0) {
|
||
|
c4807bhD.e(c4852bhw.f);
|
||
|
}
|
||
|
} else if (c4852bhw.e(c0698Mn.c)) {
|
||
|
C4809bhF c4809bhF = new C4809bhF();
|
||
|
if (c4852bhw.f != 0) {
|
||
|
c4809bhF.e(c4852bhw.f);
|
||
|
}
|
||
|
}
|
||
|
c4852bhw.a.e(W);
|
||
|
yGw ygw = c4852bhw.a;
|
||
|
ygw.d(ygw.i, new C4852bhw.AnonymousClass1(c4852bhw, c0698Mn, c0710Mv));
|
||
|
}
|
||
|
UNo uNo = this.d;
|
||
|
if (getActivity() != null) {
|
||
|
uNo.c(((BaseActivity) getActivity()).scbAnalytics, "etb_product_review");
|
||
|
}
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {
|
||
|
menuInflater.inflate(R.menu.2131689486, menu);
|
||
|
menu.findItem(R.id.menu_action_help).setVisible(false);
|
||
|
super.onCreateOptionsMenu(menu, menuInflater);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public void onDestroy() {
|
||
|
super.onDestroy();
|
||
|
this.etbReviewInformationPresenter.w_();
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9273dgd.HBt
|
||
|
public final void a(List<C0704Mr> list) {
|
||
|
this.vAccountInfo.setItems(list, false);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9273dgd.HBt
|
||
|
public final void d(List<C0704Mr> list) {
|
||
|
this.vOpeningDeposit.setItems(list, false);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9273dgd.HBt
|
||
|
public final void b(List<C0704Mr> list) {
|
||
|
this.vMonthlyDeduction.setItems(list, true);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9273dgd.HBt
|
||
|
public final void a() {
|
||
|
if (getArguments() != null) {
|
||
|
C0698Mn c0698Mn = (C0698Mn) getArguments().getParcelable("com.scb.phone.view.fragment.etb.ARG_ACCOUNT");
|
||
|
Intent afk_ = EtbOtpActivity.afk_(requireContext());
|
||
|
afk_.putExtra("com.scb.phone.view.fragment.etb.ARG_ACCOUNT", c0698Mn);
|
||
|
afk_.putExtra("ARG_ETB_REVIEW", getArguments().getParcelable("ARG_ETB_REVIEW"));
|
||
|
startActivityForResult(afk_, 1777);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9273dgd.HBt
|
||
|
public final void d() {
|
||
|
this.vOpeningDeposit.setVisibility(8);
|
||
|
this.vMonthlyDeduction.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9273dgd.HBt
|
||
|
public final void b() {
|
||
|
this.vMonthlyDeduction.setVisibility(8);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9713dpA.HBt
|
||
|
public final String q() {
|
||
|
return getString(R.string.etb_review_info_page);
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
||
|
public void onActivityResult(int i, int i2, Intent intent) {
|
||
|
super.onActivityResult(i, i2, intent);
|
||
|
if (i2 == -1 && i == 1777 && getActivity() != null) {
|
||
|
yRS supportFragmentManager = getActivity().getSupportFragmentManager();
|
||
|
((Boolean) yRS.c(new Object[]{supportFragmentManager}, 1273581602, -1273581599, System.identityHashCode(supportFragmentManager))).booleanValue();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
@OnClick
|
||
|
public void onConfirmClick() {
|
||
|
C4852bhw c4852bhw = this.etbReviewInformationPresenter;
|
||
|
ZI.IeS ieS = new ZI.IeS() { // from class: o.bhz
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
((InterfaceC9273dgd.HBt) obj).a();
|
||
|
}
|
||
|
};
|
||
|
if (c4852bhw.f != 0) {
|
||
|
ieS.e(c4852bhw.f);
|
||
|
}
|
||
|
}
|
||
|
}
|