what-the-bank/sources/com/scb/phone/view/fragment/mailingaddress/MailingAddressSuccessfulFra...

153 lines
4.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.mailingaddress;
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.fragment.BaseFragment;
import o.C0938Ry;
import o.C14957gcv;
import o.C4176bSa;
import o.InterfaceC13391fZD;
import o.InterfaceC17396wQp;
import o.InterfaceC9452djx;
import o.ZI;
/* loaded from: classes5.dex */
public final class MailingAddressSuccessfulFragment extends Hilt_MailingAddressSuccessfulFragment implements InterfaceC9452djx {
public static final Sts d = new Sts(0);
private IeS c;
@InterfaceC13391fZD
public C4176bSa presenter;
@BindView
public TextView tvRef;
@BindView
public TextView tvTime;
/* loaded from: classes5.dex */
public interface IeS {
void g();
}
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
@Override // androidx.fragment.app.Fragment
public final void onCreate(Bundle bundle) {
super.onCreate(bundle);
InterfaceC17396wQp activity = getActivity();
this.c = activity instanceof IeS ? (IeS) activity : null;
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
View inflate = layoutInflater.inflate(R.layout.2131559499, viewGroup, false);
((BaseFragment) this).a = ButterKnife.c(this, inflate);
C14957gcv.c(inflate, "");
return inflate;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onActivityCreated(Bundle bundle) {
final C0938Ry c0938Ry;
super.onActivityCreated(bundle);
C4176bSa c4176bSa = this.presenter;
if (c4176bSa == null) {
C14957gcv.a("");
c4176bSa = null;
}
c4176bSa.e((C4176bSa) this);
Bundle arguments = getArguments();
if (arguments == null || (c0938Ry = (C0938Ry) arguments.getParcelable("PARCELABLE_ADDRESS_SUCCESS")) == null) {
return;
}
ZI.IeS ieS = new ZI.IeS(c0938Ry) { // from class: o.bRZ
private C0938Ry e;
@Override // o.ZI.IeS
public final void e(Object obj) {
C4176bSa.e(this.e, (InterfaceC9452djx) obj);
}
{
this.e = c0938Ry;
}
};
if (c4176bSa.f != 0) {
ieS.e(c4176bSa.f);
}
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroy() {
super.onDestroy();
C4176bSa c4176bSa = this.presenter;
if (c4176bSa == null) {
C14957gcv.a("");
c4176bSa = null;
}
c4176bSa.w_();
}
@OnClick
public final void onDoneClick() {
C4176bSa c4176bSa = this.presenter;
if (c4176bSa == null) {
C14957gcv.a("");
c4176bSa = null;
}
ZI.IeS ieS = new ZI.IeS() { // from class: o.bRY
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9452djx) obj).d();
}
};
if (c4176bSa.f != 0) {
ieS.e(c4176bSa.f);
}
}
@Override // o.InterfaceC9452djx
public final void d(C0938Ry c0938Ry) {
C14957gcv.e(c0938Ry, "");
TextView textView = this.tvTime;
TextView textView2 = null;
if (textView == null) {
C14957gcv.a("");
textView = null;
}
textView.setText(c0938Ry.e);
TextView textView3 = this.tvRef;
if (textView3 != null) {
textView2 = textView3;
} else {
C14957gcv.a("");
}
textView2.setText(c0938Ry.a);
}
@Override // o.InterfaceC9452djx
public final void d() {
IeS ieS = this.c;
if (ieS != null) {
ieS.g();
}
}
}