what-the-bank/sources/com/scb/phone/view/fragment/registration/onboarding/RegistrationAccountsFragmen...

90 lines
3.1 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.registration.onboarding;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.investment.scbs.AddAccountConsentActivity;
import com.scb.phone.view.fragment.registration.onboarding.RegistrationAccountsFragment;
import o.C16565pPd;
import o.C5833cAp;
import o.InterfaceC13391fZD;
import o.InterfaceC9606dms;
import o.ZI;
/* loaded from: classes5.dex */
public class RegistrationAccountsFragment extends Hilt_RegistrationAccountsFragment implements InterfaceC9606dms {
@BindView
Button button;
private C16565pPd d = new C16565pPd();
@InterfaceC13391fZD
public C5833cAp presenter;
public static RegistrationAccountsFragment d() {
Bundle bundle = new Bundle();
RegistrationAccountsFragment registrationAccountsFragment = new RegistrationAccountsFragment();
registrationAccountsFragment.setArguments(bundle);
return registrationAccountsFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559858, viewGroup, false);
ButterKnife.c(this, inflate);
this.presenter.e((C5833cAp) this);
this.button.setOnClickListener(new View.OnClickListener(this) { // from class: o.fwB
private RegistrationAccountsFragment b;
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
RegistrationAccountsFragment.a(this.b);
}
{
this.b = this;
}
});
C16565pPd c16565pPd = this.d;
if (getActivity() != null) {
c16565pPd.c(((BaseActivity) getActivity()).scbAnalytics, "registration_add_account_start");
}
return inflate;
}
@Override // o.InterfaceC9606dms
public final void e() {
AddAccountConsentActivity.d(getContext());
}
@Override // androidx.fragment.app.Fragment
public void onResume() {
super.onResume();
this.button.setEnabled(true);
}
public static /* synthetic */ void a(RegistrationAccountsFragment registrationAccountsFragment) {
registrationAccountsFragment.button.setEnabled(false);
C16565pPd c16565pPd = registrationAccountsFragment.d;
if (registrationAccountsFragment.getActivity() != null) {
c16565pPd.c(((BaseActivity) registrationAccountsFragment.getActivity()).scbAnalytics, "registration_addaccounts");
}
C5833cAp c5833cAp = registrationAccountsFragment.presenter;
ZI.IeS ieS = new ZI.IeS() { // from class: o.cAo
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9606dms) obj).e();
}
};
if (c5833cAp.f != 0) {
ieS.e(c5833cAp.f);
}
}
}