159 lines
5.5 KiB
Java
159 lines
5.5 KiB
Java
|
package com.scb.phone.view.fragment.hml;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.Button;
|
||
|
import android.widget.LinearLayout;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.fragment.hml.HmlAddOperatingAccountFragment;
|
||
|
import java.util.Collections;
|
||
|
import java.util.List;
|
||
|
import o.AbstractC14961gcz;
|
||
|
import o.AbstractC5073bmE;
|
||
|
import o.C14957gcv;
|
||
|
import o.C5026blK;
|
||
|
import o.C5045bld;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC13393fZL;
|
||
|
import o.InterfaceC14890gbN;
|
||
|
import o.InterfaceC9336dhn;
|
||
|
import o.LEE;
|
||
|
import o.ZI;
|
||
|
import o.fZZ;
|
||
|
import o.nMh;
|
||
|
import o.pug;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class HmlAddOperatingAccountFragment extends Hilt_HmlAddOperatingAccountFragment<C5026blK, InterfaceC9336dhn> implements InterfaceC9336dhn {
|
||
|
public static final RVV d = new RVV(0);
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C5026blK addPresenter;
|
||
|
private Button c;
|
||
|
private final InterfaceC13393fZL i;
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.hml.HmlBaseOperatingAccountFragment
|
||
|
public final /* synthetic */ AbstractC5073bmE h() {
|
||
|
return (C5026blK) this.i.e();
|
||
|
}
|
||
|
|
||
|
public HmlAddOperatingAccountFragment() {
|
||
|
LWm lWm = new LWm(this);
|
||
|
C14957gcv.e(lWm, "");
|
||
|
this.i = new fZZ(lWm);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class RVV {
|
||
|
private RVV() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ RVV(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
static final class LWm extends AbstractC14961gcz implements InterfaceC14890gbN<C5026blK> {
|
||
|
private HmlAddOperatingAccountFragment e;
|
||
|
|
||
|
@Override // o.InterfaceC14890gbN
|
||
|
public final /* synthetic */ C5026blK invoke() {
|
||
|
C5026blK c5026blK = this.e.addPresenter;
|
||
|
if (c5026blK == null) {
|
||
|
C14957gcv.a("");
|
||
|
c5026blK = null;
|
||
|
}
|
||
|
c5026blK.e((C5026blK) this.e);
|
||
|
return c5026blK;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
LWm(HmlAddOperatingAccountFragment hmlAddOperatingAccountFragment) {
|
||
|
super(0);
|
||
|
this.e = hmlAddOperatingAccountFragment;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.hml.HmlBaseOperatingAccountFragment, androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
|
||
|
final C5026blK c5026blK = (C5026blK) this.i.e();
|
||
|
final LEE j = c5026blK.d.e.j();
|
||
|
c5026blK.e = new C5045bld(null, j.c, j.e, j.a, "");
|
||
|
ZI.IeS ieS = new ZI.IeS(c5026blK, j) { // from class: o.blJ
|
||
|
private C5026blK b;
|
||
|
private LEE d;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C5026blK.b(this.b, this.d, (InterfaceC9336dhn) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = c5026blK;
|
||
|
this.d = j;
|
||
|
}
|
||
|
};
|
||
|
if (c5026blK.f != 0) {
|
||
|
ieS.e(c5026blK.f);
|
||
|
}
|
||
|
c("p10x1_business_main_op_account_number", new pug("user_type", "etb"));
|
||
|
return onCreateView;
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.hml.HmlBaseOperatingAccountFragment
|
||
|
public final List<Button> d() {
|
||
|
Button button = new Button(getContext());
|
||
|
button.setOnClickListener(new View.OnClickListener(this) { // from class: o.eZL
|
||
|
private HmlAddOperatingAccountFragment a;
|
||
|
|
||
|
@Override // android.view.View.OnClickListener
|
||
|
public final void onClick(View view) {
|
||
|
HmlAddOperatingAccountFragment.c(this.a);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.a = this;
|
||
|
}
|
||
|
});
|
||
|
button.setTextColor(nMh.getColor(button.getContext(), R.color.f14042131100912));
|
||
|
button.setText(getString(R.string.hml_business_operating_account_add_account));
|
||
|
button.setAllCaps(false);
|
||
|
button.setEnabled(false);
|
||
|
button.setBackground(nMh.getDrawable(button.getContext(), R.drawable.bg_button_primary));
|
||
|
LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(0, -2, g());
|
||
|
int dimensionPixelSize = button.getResources().getDimensionPixelSize(R.dimen.f16672131165433);
|
||
|
layoutParams.setMargins(dimensionPixelSize, dimensionPixelSize, dimensionPixelSize, dimensionPixelSize);
|
||
|
button.setLayoutParams(layoutParams);
|
||
|
this.c = button;
|
||
|
List<Button> singletonList = Collections.singletonList(button);
|
||
|
C14957gcv.c(singletonList, "");
|
||
|
return singletonList;
|
||
|
}
|
||
|
|
||
|
@Override // com.scb.phone.view.fragment.hml.HmlBaseOperatingAccountFragment
|
||
|
public final void c(boolean z) {
|
||
|
Button button = this.c;
|
||
|
if (button == null) {
|
||
|
C14957gcv.a("");
|
||
|
button = null;
|
||
|
}
|
||
|
button.setEnabled(z);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onCreate(Bundle bundle) {
|
||
|
super.onCreate(bundle);
|
||
|
c("p10x1_business_main_operating_account_number", new pug("user_type", "etb"));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void c(HmlAddOperatingAccountFragment hmlAddOperatingAccountFragment) {
|
||
|
C14957gcv.e(hmlAddOperatingAccountFragment, "");
|
||
|
((C5026blK) hmlAddOperatingAccountFragment.i.e()).b();
|
||
|
}
|
||
|
}
|