package com.scb.phone.view.fragment.bulktransfer; import android.content.DialogInterface; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; import com.scb.phone.R; import com.scb.phone.view.activity.bulktransfer.ManageRecipientGroupActivity; import com.scb.phone.view.custom.common.CounterEditText; import com.scb.phone.view.custom.common.DefaultButton; import o.C2745akR; import o.C6583cXR; import o.InterfaceC13391fZD; import o.InterfaceC6636cYn; import o.ZI; import o.hpl; import o.iNh; import o.nMh; /* loaded from: classes5.dex */ public class CreateGroupFragment extends Hilt_CreateGroupFragment implements InterfaceC6636cYn.jbe { @BindView DefaultButton createGroupButton; @BindView CounterEditText createGroupEditText; @InterfaceC13391fZD public C2745akR createRecipientGroupPresenter; public static CreateGroupFragment j() { return new CreateGroupFragment(); } @Override // androidx.fragment.app.Fragment public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) { View inflate = layoutInflater.inflate(R.layout.2131559518, viewGroup, false); ButterKnife.c(this, inflate); this.createRecipientGroupPresenter.e((C2745akR) this); this.createGroupEditText.setDefaultButton(this.createGroupButton); return inflate; } @OnClick public void onCreateButtonClick() { C2745akR c2745akR = this.createRecipientGroupPresenter; String obj = this.createGroupEditText.editText.getText().toString(); if (!((Boolean) C6583cXR.c(new Object[]{obj}, -1032102340, 1032102340, (int) System.currentTimeMillis())).booleanValue()) { ZI.IeS ieS = new ZI.IeS() { // from class: o.alb @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6636cYn.jbe) obj2).d(); } }; if (c2745akR.f != 0) { ieS.e(c2745akR.f); return; } return; } if (c2745akR.c) { return; } c2745akR.c = true; ZI.IeS ieS2 = new ZI.IeS() { // from class: o.akT @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6636cYn.jbe) obj2).aN_(); } }; if (c2745akR.f != 0) { ieS2.e(c2745akR.f); } if (c2745akR.f != 0) { c2745akR.f.y(); } hpl e = hpl.e(); e.c = obj; c2745akR.e.c(e); iNh inh = c2745akR.e; inh.d(inh.i, new C2745akR.HBt(c2745akR, (byte) 0)); } @Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment public void onDestroy() { super.onDestroy(); this.createRecipientGroupPresenter.w_(); } @Override // o.InterfaceC6636cYn.jbe public final void d() { CounterEditText counterEditText = this.createGroupEditText; counterEditText.errorText.setVisibility(0); counterEditText.editText.setBackground(nMh.getDrawable(counterEditText.getContext(), R.drawable.shape_red_reounded_reactangle_border)); } @Override // o.InterfaceC6636cYn.jbe public final void b(String str) { ManageRecipientGroupActivity.c(getContext(), str, "com.scb.phone/BROADCAST_RELOAD_BULK_TRANSFER"); getActivity().finish(); } @Override // com.scb.phone.view.fragment.BaseFragment, android.content.DialogInterface.OnDismissListener public void onDismiss(DialogInterface dialogInterface) { super.onDismiss(dialogInterface); this.createRecipientGroupPresenter.c = false; } }