429 lines
14 KiB
Java
429 lines
14 KiB
Java
package com.scb.phone.view.fragment.investment.redeem;
|
|
|
|
import android.content.DialogInterface;
|
|
import android.content.Intent;
|
|
import android.content.res.Resources;
|
|
import android.os.Build;
|
|
import android.os.Bundle;
|
|
import android.os.Parcelable;
|
|
import android.text.method.LinkMovementMethod;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.Button;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.RadioButton;
|
|
import android.widget.TextView;
|
|
import androidx.fragment.app.FragmentActivity;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import butterknife.OnClick;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.activity.investment.redeem.FundRedeemOtpActivity;
|
|
import com.scb.phone.view.custom.common.CustomDialog;
|
|
import com.scb.phone.view.custom.common.DefaultButton;
|
|
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayItem;
|
|
import com.scb.phone.view.fragment.BaseFragment;
|
|
import o.AbstractC14961gcz;
|
|
import o.C0865Qg;
|
|
import o.C14866gag;
|
|
import o.C14957gcv;
|
|
import o.C3796bGy;
|
|
import o.InterfaceC13391fZD;
|
|
import o.InterfaceC14890gbN;
|
|
import o.InterfaceC6674cZq;
|
|
import o.OL;
|
|
import o.OR;
|
|
import o.ZI;
|
|
import o.fKB;
|
|
import o.gjJ;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class FundRedeemReviewFragment extends Hilt_FundRedeemReviewFragment implements InterfaceC6674cZq.IeS {
|
|
|
|
@BindView
|
|
public DefaultButton btContinue;
|
|
|
|
@BindView
|
|
public Button btStickyConfirm;
|
|
|
|
@BindView
|
|
public LinearLayout llLayoutOmnibusDisclaimer;
|
|
|
|
@BindView
|
|
public LinearLayout llLayoutRequestHold;
|
|
|
|
@BindView
|
|
public RadioButton rbHoldingNo;
|
|
|
|
@BindView
|
|
public RadioButton rbHoldingYes;
|
|
|
|
@InterfaceC13391fZD
|
|
public C3796bGy redeemReviewPresenter;
|
|
|
|
@BindView
|
|
public TextView tvOmnibusAccountRequestHoldingDisclaimer;
|
|
|
|
@BindView
|
|
public TextView tvOmnibusDisclaimer;
|
|
|
|
@BindView
|
|
public CustomTransferAndPayItem tvTransactionDate;
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
Intent intent;
|
|
Bundle extras;
|
|
Parcelable parcelable;
|
|
C14957gcv.e(layoutInflater, "");
|
|
View inflate = layoutInflater.inflate(R.layout.2131559857, viewGroup, false);
|
|
((BaseFragment) this).a = ButterKnife.c(this, inflate);
|
|
C3796bGy c3796bGy = this.redeemReviewPresenter;
|
|
final C3796bGy c3796bGy2 = null;
|
|
if (c3796bGy == null) {
|
|
C14957gcv.a("");
|
|
c3796bGy = null;
|
|
}
|
|
c3796bGy.e((C3796bGy) this);
|
|
FragmentActivity activity = getActivity();
|
|
if (activity != null && (intent = activity.getIntent()) != null && (extras = intent.getExtras()) != null) {
|
|
if (Build.VERSION.SDK_INT >= 33) {
|
|
parcelable = (Parcelable) extras.getParcelable("com.scb.phone.REDEEM_FUND_VERIFICATION_DETAILS", C0865Qg.class);
|
|
} else {
|
|
Parcelable parcelable2 = extras.getParcelable("com.scb.phone.REDEEM_FUND_VERIFICATION_DETAILS");
|
|
if (!(parcelable2 instanceof C0865Qg)) {
|
|
parcelable2 = null;
|
|
}
|
|
parcelable = (C0865Qg) parcelable2;
|
|
}
|
|
final C0865Qg c0865Qg = (C0865Qg) parcelable;
|
|
if (c0865Qg != null) {
|
|
OL ol = c0865Qg.b;
|
|
C3796bGy c3796bGy3 = this.redeemReviewPresenter;
|
|
if (c3796bGy3 == null) {
|
|
C14957gcv.a("");
|
|
c3796bGy3 = null;
|
|
}
|
|
super.e(ol, inflate, "ACCOUNT_MASKING_REVIEW", c3796bGy3.b.a.T());
|
|
C3796bGy c3796bGy4 = this.redeemReviewPresenter;
|
|
if (c3796bGy4 != null) {
|
|
c3796bGy2 = c3796bGy4;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
C14957gcv.e(c0865Qg, "");
|
|
c3796bGy2.d = c0865Qg;
|
|
ZI.IeS ieS = new ZI.IeS(c0865Qg, c3796bGy2) { // from class: o.bGz
|
|
private C3796bGy b;
|
|
private C0865Qg c;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C3796bGy.b(this.c, this.b, (InterfaceC6674cZq.IeS) obj);
|
|
}
|
|
|
|
{
|
|
this.c = c0865Qg;
|
|
this.b = c3796bGy2;
|
|
}
|
|
};
|
|
if (c3796bGy2.f != 0) {
|
|
ieS.e(c3796bGy2.f);
|
|
}
|
|
}
|
|
}
|
|
super.aa();
|
|
Z();
|
|
Y();
|
|
v("mfschedule_redeemreview");
|
|
return inflate;
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment
|
|
public final void aa() {
|
|
super.aa();
|
|
Z();
|
|
Y();
|
|
}
|
|
|
|
@OnClick
|
|
public final void onHoldingYesRadioButtonClicked() {
|
|
C3796bGy c3796bGy = this.redeemReviewPresenter;
|
|
if (c3796bGy == null) {
|
|
C14957gcv.a("");
|
|
c3796bGy = null;
|
|
}
|
|
C14957gcv.e("Y", "");
|
|
c3796bGy.e = "Y";
|
|
}
|
|
|
|
@OnClick
|
|
public final void onHoldingNoRadioButtonClicked() {
|
|
C3796bGy c3796bGy = this.redeemReviewPresenter;
|
|
if (c3796bGy == null) {
|
|
C14957gcv.a("");
|
|
c3796bGy = null;
|
|
}
|
|
C14957gcv.e("N", "");
|
|
c3796bGy.e = "N";
|
|
}
|
|
|
|
@OnClick
|
|
public final void onConfirmButtonClicked() {
|
|
final C3796bGy c3796bGy = this.redeemReviewPresenter;
|
|
if (c3796bGy == null) {
|
|
C14957gcv.a("");
|
|
c3796bGy = null;
|
|
}
|
|
ZI.IeS ieS = new ZI.IeS(c3796bGy) { // from class: o.bGx
|
|
private C3796bGy a;
|
|
|
|
@Override // o.ZI.IeS
|
|
public final void e(Object obj) {
|
|
C3796bGy.b(this.a, (InterfaceC6674cZq.IeS) obj);
|
|
}
|
|
|
|
{
|
|
this.a = c3796bGy;
|
|
}
|
|
};
|
|
if (c3796bGy.f != 0) {
|
|
ieS.e(c3796bGy.f);
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void b(String str, C0865Qg c0865Qg) {
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(c0865Qg, "");
|
|
startActivity(FundRedeemOtpActivity.ahu_(getContext(), str, c0865Qg));
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void b() {
|
|
RadioButton radioButton = this.rbHoldingYes;
|
|
RadioButton radioButton2 = null;
|
|
if (radioButton == null) {
|
|
C14957gcv.a("");
|
|
radioButton = null;
|
|
}
|
|
radioButton.setChecked(true);
|
|
RadioButton radioButton3 = this.rbHoldingYes;
|
|
if (radioButton3 == null) {
|
|
C14957gcv.a("");
|
|
radioButton3 = null;
|
|
}
|
|
radioButton3.setEnabled(false);
|
|
RadioButton radioButton4 = this.rbHoldingNo;
|
|
if (radioButton4 != null) {
|
|
radioButton2 = radioButton4;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
radioButton2.setEnabled(false);
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void e() {
|
|
RadioButton radioButton = this.rbHoldingNo;
|
|
RadioButton radioButton2 = null;
|
|
if (radioButton == null) {
|
|
C14957gcv.a("");
|
|
radioButton = null;
|
|
}
|
|
radioButton.setChecked(true);
|
|
RadioButton radioButton3 = this.rbHoldingYes;
|
|
if (radioButton3 == null) {
|
|
C14957gcv.a("");
|
|
radioButton3 = null;
|
|
}
|
|
radioButton3.setEnabled(false);
|
|
RadioButton radioButton4 = this.rbHoldingNo;
|
|
if (radioButton4 != null) {
|
|
radioButton2 = radioButton4;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
radioButton2.setEnabled(false);
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void d() {
|
|
RadioButton radioButton = this.rbHoldingNo;
|
|
if (radioButton == null) {
|
|
C14957gcv.a("");
|
|
radioButton = null;
|
|
}
|
|
radioButton.setChecked(true);
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void b(String str) {
|
|
C14957gcv.e(str, "");
|
|
CustomTransferAndPayItem customTransferAndPayItem = this.tvTransactionDate;
|
|
if (customTransferAndPayItem == null) {
|
|
C14957gcv.a("");
|
|
customTransferAndPayItem = null;
|
|
}
|
|
customTransferAndPayItem.setValue(str);
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void c() {
|
|
u(getString(R.string.review_redeem_title));
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void a() {
|
|
u(getString(R.string.review_redeem_scheduled_title));
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void d(OR or) {
|
|
C14957gcv.e(or, "");
|
|
b(or);
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void j() {
|
|
LinearLayout linearLayout = this.llLayoutRequestHold;
|
|
TextView textView = null;
|
|
if (linearLayout == null) {
|
|
C14957gcv.a("");
|
|
linearLayout = null;
|
|
}
|
|
LinearLayout linearLayout2 = linearLayout;
|
|
C14957gcv.e(linearLayout2, "");
|
|
linearLayout2.setVisibility(8);
|
|
TextView textView2 = this.tvOmnibusAccountRequestHoldingDisclaimer;
|
|
if (textView2 != null) {
|
|
textView = textView2;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
TextView textView3 = textView;
|
|
C14957gcv.e(textView3, "");
|
|
textView3.setVisibility(0);
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void c(String str, String str2) {
|
|
C14957gcv.e(str, "");
|
|
C14957gcv.e(str2, "");
|
|
LinearLayout linearLayout = this.llLayoutOmnibusDisclaimer;
|
|
TextView textView = null;
|
|
if (linearLayout == null) {
|
|
C14957gcv.a("");
|
|
linearLayout = null;
|
|
}
|
|
LinearLayout linearLayout2 = linearLayout;
|
|
C14957gcv.e(linearLayout2, "");
|
|
linearLayout2.setVisibility(0);
|
|
TextView textView2 = this.tvOmnibusDisclaimer;
|
|
if (textView2 != null) {
|
|
textView = textView2;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
Resources resources = textView.getResources();
|
|
C14957gcv.c(resources, "");
|
|
String string = getString(R.string.redeem_review_omnibus_clickable);
|
|
C14957gcv.c((Object) string, "");
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(str);
|
|
sb.append(" ");
|
|
textView.setText(fKB.azW_(resources, string, sb.toString(), null, true, R.color.f13682131100876, new LWm(this, str2), 40));
|
|
textView.setMovementMethod(LinkMovementMethod.getInstance());
|
|
}
|
|
|
|
/* loaded from: classes5.dex */
|
|
static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN<C14866gag> {
|
|
private FundRedeemReviewFragment b;
|
|
private String c;
|
|
|
|
@Override // o.InterfaceC14890gbN
|
|
public final /* synthetic */ C14866gag invoke() {
|
|
FundRedeemReviewFragment.b(this.b, this.c);
|
|
return C14866gag.c;
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
LWm(FundRedeemReviewFragment fundRedeemReviewFragment, String str) {
|
|
super(0);
|
|
this.b = fundRedeemReviewFragment;
|
|
this.c = str;
|
|
}
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void g() {
|
|
Button button = this.btStickyConfirm;
|
|
DefaultButton defaultButton = null;
|
|
if (button == null) {
|
|
C14957gcv.a("");
|
|
button = null;
|
|
}
|
|
Button button2 = button;
|
|
C14957gcv.e(button2, "");
|
|
button2.setVisibility(0);
|
|
DefaultButton defaultButton2 = this.btContinue;
|
|
if (defaultButton2 != null) {
|
|
defaultButton = defaultButton2;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
DefaultButton defaultButton3 = defaultButton;
|
|
C14957gcv.e(defaultButton3, "");
|
|
defaultButton3.setVisibility(8);
|
|
}
|
|
|
|
@Override // o.InterfaceC6674cZq.IeS
|
|
public final void f() {
|
|
Button button = this.btStickyConfirm;
|
|
DefaultButton defaultButton = null;
|
|
if (button == null) {
|
|
C14957gcv.a("");
|
|
button = null;
|
|
}
|
|
Button button2 = button;
|
|
C14957gcv.e(button2, "");
|
|
button2.setVisibility(8);
|
|
DefaultButton defaultButton2 = this.btContinue;
|
|
if (defaultButton2 != null) {
|
|
defaultButton = defaultButton2;
|
|
} else {
|
|
C14957gcv.a("");
|
|
}
|
|
DefaultButton defaultButton3 = defaultButton;
|
|
C14957gcv.e(defaultButton3, "");
|
|
defaultButton3.setVisibility(0);
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
|
|
public final void onDestroy() {
|
|
C3796bGy c3796bGy = this.redeemReviewPresenter;
|
|
if (c3796bGy == null) {
|
|
C14957gcv.a("");
|
|
c3796bGy = null;
|
|
}
|
|
c3796bGy.w_();
|
|
super.onDestroy();
|
|
}
|
|
|
|
public static final /* synthetic */ void b(FundRedeemReviewFragment fundRedeemReviewFragment, String str) {
|
|
CustomDialog c = CustomDialog.b(fundRedeemReviewFragment.requireContext()).c(R.string.redeem_review_omnibus_condition);
|
|
if (gjJ.a(str)) {
|
|
c.mTextTextView.setVisibility(0);
|
|
c.mTextTextView.setText(str);
|
|
}
|
|
c.setCancelable(false);
|
|
c.aoT_(R.string.close, new DialogInterface.OnClickListener() { // from class: o.fiz
|
|
@Override // android.content.DialogInterface.OnClickListener
|
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
|
dialogInterface.dismiss();
|
|
}
|
|
}).show();
|
|
}
|
|
}
|