what-the-bank/sources/com/scb/phone/view/fragment/emailverification/ManageEmailVerificationSucc...

111 lines
3.5 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.emailverification;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import o.C13846fhy;
import o.C4724bfa;
import o.InterfaceC13391fZD;
import o.ZI;
import o.cZQ;
/* loaded from: classes5.dex */
public class ManageEmailVerificationSuccessFragment extends Hilt_ManageEmailVerificationSuccessFragment implements cZQ.RVV {
private Sts d;
@InterfaceC13391fZD
public C4724bfa emailSuccessPresenter;
@BindView
TextView textDateTime;
@BindView
TextView textSuccessTitle;
/* loaded from: classes5.dex */
public interface Sts {
void d(String str);
}
@Override // androidx.fragment.app.Fragment
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
if (getActivity() != null) {
getActivity().getWindow().setSoftInputMode(2);
}
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559634, viewGroup, false);
ButterKnife.c(this, inflate);
aa();
this.emailSuccessPresenter.e((C4724bfa) this);
C13846fhy c13846fhy = new C13846fhy();
if (getActivity() != null) {
c13846fhy.c(((BaseActivity) getActivity()).scbAnalytics, "emailverification_success");
}
if (getArguments() != null) {
Bundle arguments = getArguments();
final String string = arguments.getString("BUNDLE_EMAIL");
final String string2 = arguments.getString("BUNDLE_TRANSACTION_DATETIME");
C4724bfa c4724bfa = this.emailSuccessPresenter;
ZI.IeS ieS = new ZI.IeS(string, string2) { // from class: o.bfb
private String a;
private String b;
@Override // o.ZI.IeS
public final void e(Object obj) {
((cZQ.RVV) obj).c(this.a, this.b);
}
{
this.a = string;
this.b = string2;
}
};
if (c4724bfa.f != 0) {
ieS.e(c4724bfa.f);
}
}
return inflate;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
this.emailSuccessPresenter.w_();
super.onDestroy();
}
@Override // o.cZQ.RVV
public final void c(String str, String str2) {
this.textSuccessTitle.setText(getString(R.string.manage_email_success_verified, str));
this.textDateTime.setText(str2);
}
@OnClick
public void onReturnHomeClick() {
if (this.d == null || getArguments() == null) {
return;
}
this.d.d(getArguments().getString("BUNDLE_EMAIL"));
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.scb.phone.view.fragment.emailverification.Hilt_ManageEmailVerificationSuccessFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public void onAttach(Context context) {
super.onAttach(context);
if (context instanceof Sts) {
this.d = (Sts) context;
}
}
}