116 lines
4.4 KiB
Java
116 lines
4.4 KiB
Java
package com.scb.phone.view.fragment.prepaid.request;
|
|
|
|
import android.content.Context;
|
|
import android.os.Bundle;
|
|
import android.view.View;
|
|
import android.widget.TextView;
|
|
import com.scb.phone.R;
|
|
import o.C0148Af;
|
|
import o.C1044Uj;
|
|
import o.C14957gcv;
|
|
import o.C7668csf;
|
|
import o.InterfaceC12859fJc;
|
|
import o.InterfaceC13391fZD;
|
|
import o.SP;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class PrepaidRequestMailingAddressFragment extends Hilt_PrepaidRequestMailingAddressFragment {
|
|
public static final LWm d = new LWm(0);
|
|
private SP c;
|
|
private InterfaceC12859fJc m;
|
|
|
|
@InterfaceC13391fZD
|
|
public C7668csf mailingPresenter;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class LWm {
|
|
private LWm() {
|
|
}
|
|
|
|
public /* synthetic */ LWm(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // com.scb.phone.view.fragment.prepaid.request.Hilt_PrepaidRequestMailingAddressFragment, 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 InterfaceC12859fJc) {
|
|
this.m = (InterfaceC12859fJc) context;
|
|
}
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.ntb.address.BaseAddressFragment, androidx.fragment.app.Fragment
|
|
public final void onViewCreated(View view, Bundle bundle) {
|
|
SP sp;
|
|
C14957gcv.e(view, "");
|
|
super.onViewCreated(view, bundle);
|
|
g();
|
|
this.textAddressTitle.setText(getString(R.string.prepaid_request_mailing_address_header));
|
|
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.prepaid_request_mailing_address_remark));
|
|
}
|
|
Bundle arguments = getArguments();
|
|
if (arguments == null || (sp = (SP) arguments.getParcelable("EXTRA_PREPAID_REQUEST_MAILING_ADDRESS")) == null) {
|
|
return;
|
|
}
|
|
this.c = sp;
|
|
c(sp, true);
|
|
}
|
|
|
|
@Override // com.scb.phone.view.fragment.ntb.address.BaseAddressFragment
|
|
public final void onNextButtonClick() {
|
|
C7668csf c7668csf = this.mailingPresenter;
|
|
if (c7668csf == null) {
|
|
C14957gcv.a("");
|
|
c7668csf = 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, "");
|
|
C0148Af c0148Af = c7668csf.e;
|
|
C1044Uj c = C0148Af.c(trim, obj, obj2, obj3, obj4, trim2, trim3, trim4, trim5, trim6, trim7, trim8);
|
|
InterfaceC12859fJc interfaceC12859fJc = this.m;
|
|
if (interfaceC12859fJc != null) {
|
|
interfaceC12859fJc.e(c);
|
|
}
|
|
}
|
|
}
|