what-the-bank/sources/com/scb/phone/view/fragment/hml/HmlVerifyEmailSuccessfulFra...

135 lines
4.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.hml;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.huawei.hms.support.api.entity.common.CommonConstant;
import com.scb.phone.R;
import com.scb.phone.view.activity.hml.HmlETBLoanSetupActivity;
import com.scb.phone.view.activity.hml.businessowner.HmlBusinessOwnerLoanSetupActivity;
import o.C14957gcv;
import o.C5588bvr;
import o.InterfaceC13391fZD;
import o.InterfaceC9304dhH;
import o.ZI;
import o.bTI;
import o.pug;
/* loaded from: classes5.dex */
public class HmlVerifyEmailSuccessfulFragment extends Hilt_HmlVerifyEmailSuccessfulFragment implements InterfaceC9304dhH {
@BindView
Button btEmailVerifyButton;
@InterfaceC13391fZD
public C5588bvr presenter;
@BindView
TextView tvEmailVerifySuccessText;
public static HmlVerifyEmailSuccessfulFragment a(String str) {
HmlVerifyEmailSuccessfulFragment hmlVerifyEmailSuccessfulFragment = new HmlVerifyEmailSuccessfulFragment();
Bundle bundle = new Bundle();
bundle.putString(CommonConstant.RETKEY.EMAIL, str);
hmlVerifyEmailSuccessfulFragment.setArguments(bundle);
return hmlVerifyEmailSuccessfulFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559723, (ViewGroup) null, false);
ButterKnife.c(this, inflate);
this.presenter.e((C5588bvr) this);
final C5588bvr c5588bvr = this.presenter;
final String string = getArguments().getString(CommonConstant.RETKEY.EMAIL);
ZI.IeS ieS = new ZI.IeS(c5588bvr, string) { // from class: o.bvw
private String b;
private C5588bvr c;
@Override // o.ZI.IeS
public final void e(Object obj) {
C5588bvr.c(this.c, this.b, (InterfaceC9304dhH) obj);
}
{
this.c = c5588bvr;
this.b = string;
}
};
if (c5588bvr.f != 0) {
ieS.e(c5588bvr.f);
}
return inflate;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
this.presenter.w_();
super.onDestroy();
}
public void a(bTI bti) {
Intent intent;
if (getContext() != null) {
if (bti == bTI.CONSUMER) {
HmlETBLoanSetupActivity.IeS ieS = HmlETBLoanSetupActivity.b;
Context context = getContext();
C14957gcv.e(context, "");
intent = new Intent(context, (Class<?>) HmlETBLoanSetupActivity.class);
} else {
HmlBusinessOwnerLoanSetupActivity.RVV rvv = HmlBusinessOwnerLoanSetupActivity.k;
Context context2 = getContext();
C14957gcv.e(context2, "");
intent = new Intent(context2, (Class<?>) HmlBusinessOwnerLoanSetupActivity.class);
}
startActivity(intent);
}
}
@Override // o.InterfaceC9304dhH
public final void d(String str) {
this.tvEmailVerifySuccessText.setText(Html.fromHtml(getString(R.string.hml_verify_email_success_text, str)));
}
@Override // o.InterfaceC9304dhH
public final void b(boolean z) {
pug[] pugVarArr = new pug[2];
pugVarArr[0] = new pug("user_type", d());
pugVarArr[1] = new pug("loan_type", z ? "business_owner" : "consumer");
c("p10x1_email_verify_successful", pugVarArr);
}
@OnClick
public void onNextClicked() {
final C5588bvr c5588bvr = this.presenter;
ZI.IeS ieS = new ZI.IeS(c5588bvr) { // from class: o.bvp
private C5588bvr b;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9304dhH) obj).a(this.b.a.a.f());
}
{
this.b = c5588bvr;
}
};
if (c5588bvr.f != 0) {
ieS.e(c5588bvr.f);
}
}
protected String d() {
return "etb";
}
}