what-the-bank/sources/com/scb/phone/view/fragment/debitcard/DebitCardRequestMailingAddr...

129 lines
5.0 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.debitcard;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.View;
import android.widget.TextView;
import com.scb.phone.R;
import o.C1044Uj;
import o.C1471aFB;
import o.C14957gcv;
import o.C16627po;
import o.InterfaceC12849fIx;
import o.InterfaceC13391fZD;
import o.SP;
/* loaded from: classes5.dex */
public final class DebitCardRequestMailingAddressFragment extends Hilt_DebitCardRequestMailingAddressFragment {
public static final Sts c = new Sts(0);
private SP d;
private InterfaceC12849fIx l;
@InterfaceC13391fZD
public C1471aFB mailingPresenter;
/* loaded from: classes5.dex */
public static final class Sts {
private Sts() {
}
public /* synthetic */ Sts(byte b) {
this();
}
}
/* JADX WARN: Multi-variable type inference failed */
@Override // com.scb.phone.view.fragment.debitcard.Hilt_DebitCardRequestMailingAddressFragment, com.scb.phone.view.fragment.ntb.address.BaseAddressFragment, com.scb.phone.view.fragment.ntb.address.Hilt_BaseAddressFragment, com.scb.phone.view.fragment.Hilt_BaseFragment, androidx.fragment.app.Fragment
public final void onAttach(Context context) {
C14957gcv.e(context, "");
super.onAttach(context);
if (context instanceof InterfaceC12849fIx) {
this.l = (InterfaceC12849fIx) context;
}
}
@Override // com.scb.phone.view.fragment.ntb.address.BaseAddressFragment, androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
Parcelable parcelable;
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
g();
this.textAddressTitle.setText(getString(R.string.debit_card_request_mailing_address_description));
this.trok.setVisibility(0);
TextView textView = this.tvRemark;
if (textView != null) {
textView.setVisibility(0);
}
TextView textView2 = this.tvRemark;
if (textView2 != null) {
textView2.setText(getString(R.string.debit_card_request_mailing_address_remark));
}
Bundle arguments = getArguments();
if (arguments != null) {
if (Build.VERSION.SDK_INT >= 33) {
parcelable = (Parcelable) arguments.getParcelable("EXTRA_DEBIT_CARD_REQUEST_MAILING_ADDRESS", SP.class);
} else {
Parcelable parcelable2 = arguments.getParcelable("EXTRA_DEBIT_CARD_REQUEST_MAILING_ADDRESS");
if (!(parcelable2 instanceof SP)) {
parcelable2 = null;
}
parcelable = (SP) parcelable2;
}
SP sp = (SP) parcelable;
if (sp != null) {
this.d = sp;
c(sp, true);
}
}
}
@Override // com.scb.phone.view.fragment.ntb.address.BaseAddressFragment
public final void onNextButtonClick() {
C1471aFB c1471aFB = this.mailingPresenter;
if (c1471aFB == null) {
C14957gcv.a("");
c1471aFB = null;
}
String trim = this.houseNo.inputTextField.getText().toString().trim();
C14957gcv.c((Object) trim, "");
String obj = this.provinceLabel.getText().toString();
String obj2 = this.districtLabel.getText().toString();
String obj3 = this.subDistrictLabel.getText().toString();
String obj4 = this.postalCodeLabel.getText().toString();
String trim2 = this.moo.inputTextField.getText().toString().trim();
C14957gcv.c((Object) trim2, "");
String trim3 = this.alley.inputTextField.getText().toString().trim();
C14957gcv.c((Object) trim3, "");
String trim4 = this.roadTH.inputTextField.getText().toString().trim();
C14957gcv.c((Object) trim4, "");
String trim5 = this.trok.inputTextField.getText().toString().trim();
C14957gcv.c((Object) trim5, "");
String trim6 = this.village.inputTextField.getText().toString().trim();
C14957gcv.c((Object) trim6, "");
String trim7 = this.unit.inputTextField.getText().toString().trim();
C14957gcv.c((Object) trim7, "");
String trim8 = this.floor.inputTextField.getText().toString().trim();
C14957gcv.c((Object) trim8, "");
C14957gcv.e(trim, "");
C14957gcv.e(obj, "");
C14957gcv.e(obj2, "");
C14957gcv.e(obj3, "");
C14957gcv.e(obj4, "");
C14957gcv.e(trim2, "");
C14957gcv.e(trim3, "");
C14957gcv.e(trim4, "");
C14957gcv.e(trim5, "");
C14957gcv.e(trim6, "");
C14957gcv.e(trim7, "");
C14957gcv.e(trim8, "");
C16627po c16627po = c1471aFB.a;
C1044Uj a = C16627po.a(trim, obj, obj2, obj3, obj4, trim2, trim3, trim4, trim5, trim6, trim7, trim8);
InterfaceC12849fIx interfaceC12849fIx = this.l;
if (interfaceC12849fIx != null) {
interfaceC12849fIx.b(a);
}
}
}