157 lines
5.6 KiB
Java
157 lines
5.6 KiB
Java
|
package com.scb.phone.view.fragment.cardmanagement;
|
||
|
|
||
|
import android.content.Intent;
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.fragment.app.FragmentActivity;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.OnClick;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.creditcard.CreditCardDetailActivity;
|
||
|
import com.scb.phone.view.custom.transferandpay.CustomNoteItem;
|
||
|
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayItem;
|
||
|
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collection;
|
||
|
import java.util.Iterator;
|
||
|
import o.C0367Fb;
|
||
|
import o.C14881gav;
|
||
|
import o.C14957gcv;
|
||
|
import o.C2974aoj;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class EStatementsSuccessfulFragment extends Hilt_EStatementsSuccessfulFragment {
|
||
|
public static final Sts c = new Sts(0);
|
||
|
private C0367Fb d;
|
||
|
private ArrayList<String> g = new ArrayList<>();
|
||
|
private String j;
|
||
|
|
||
|
@BindView
|
||
|
public TextView textDescription;
|
||
|
|
||
|
@BindView
|
||
|
public CustomTransferAndPaySource viewAccount;
|
||
|
|
||
|
@BindView
|
||
|
public CustomNoteItem viewBillCycle;
|
||
|
|
||
|
@BindView
|
||
|
public CustomTransferAndPayItem viewSendTo;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class Sts {
|
||
|
private Sts() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ Sts(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
C14957gcv.e(layoutInflater, "");
|
||
|
return layoutInflater.inflate(R.layout.2131559584, viewGroup, false);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onCreate(Bundle bundle) {
|
||
|
super.onCreate(bundle);
|
||
|
Bundle arguments = getArguments();
|
||
|
if (arguments != null) {
|
||
|
this.d = (C0367Fb) arguments.getParcelable("CREDIT_CARD_DISPLAY_KEY");
|
||
|
this.j = arguments.getString("EMAIL_KEY");
|
||
|
ArrayList<String> stringArrayList = arguments.getStringArrayList("LIST_BILLED_CYCLE_KEY");
|
||
|
if (stringArrayList != null) {
|
||
|
C14957gcv.c(stringArrayList, "");
|
||
|
this.g = stringArrayList;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public final void onViewCreated(View view, Bundle bundle) {
|
||
|
C14957gcv.e(view, "");
|
||
|
super.onViewCreated(view, bundle);
|
||
|
ButterKnife.c(this, view);
|
||
|
CustomTransferAndPaySource customTransferAndPaySource = this.viewAccount;
|
||
|
TextView textView = null;
|
||
|
if (customTransferAndPaySource == null) {
|
||
|
C14957gcv.a("");
|
||
|
customTransferAndPaySource = null;
|
||
|
}
|
||
|
C0367Fb c0367Fb = this.d;
|
||
|
customTransferAndPaySource.setSourceName(c0367Fb != null ? c0367Fb.S : null);
|
||
|
C0367Fb c0367Fb2 = this.d;
|
||
|
String str = c0367Fb2 != null ? c0367Fb2.q : null;
|
||
|
if (str == null) {
|
||
|
str = "";
|
||
|
}
|
||
|
customTransferAndPaySource.setAccountNumber(str);
|
||
|
customTransferAndPaySource.setText(getString(R.string.ccm_e_statement_successful_account));
|
||
|
C0367Fb c0367Fb3 = this.d;
|
||
|
String str2 = c0367Fb3 != null ? c0367Fb3.A : null;
|
||
|
if (str2 == null) {
|
||
|
str2 = "";
|
||
|
}
|
||
|
customTransferAndPaySource.setAvatarFromUrl(str2);
|
||
|
customTransferAndPaySource.setDivider(false);
|
||
|
CustomNoteItem customNoteItem = this.viewBillCycle;
|
||
|
if (customNoteItem == null) {
|
||
|
C14957gcv.a("");
|
||
|
customNoteItem = null;
|
||
|
}
|
||
|
String string = getString(R.string.billed_cycle);
|
||
|
C14957gcv.c((Object) string, "");
|
||
|
customNoteItem.setTitle(C2974aoj.b(string));
|
||
|
ArrayList<String> arrayList = this.g;
|
||
|
C14957gcv.e(arrayList, "");
|
||
|
ArrayList arrayList2 = new ArrayList(arrayList instanceof Collection ? arrayList.size() : 10);
|
||
|
Iterator<T> it = arrayList.iterator();
|
||
|
while (it.hasNext()) {
|
||
|
arrayList2.add(C2974aoj.b((String) it.next()));
|
||
|
}
|
||
|
ArrayList arrayList3 = arrayList2;
|
||
|
C14957gcv.e(arrayList3, "");
|
||
|
C14957gcv.e("\n", "");
|
||
|
customNoteItem.setText(C14881gav.b(arrayList3, "\n", null, null, 0, null, null, 62));
|
||
|
customNoteItem.d();
|
||
|
customNoteItem.bottomSpace.setVisibility(0);
|
||
|
customNoteItem.divider.setVisibility(8);
|
||
|
CustomTransferAndPayItem customTransferAndPayItem = this.viewSendTo;
|
||
|
if (customTransferAndPayItem == null) {
|
||
|
C14957gcv.a("");
|
||
|
customTransferAndPayItem = null;
|
||
|
}
|
||
|
customTransferAndPayItem.setText(getString(R.string.export_statement_successful_sent_to));
|
||
|
String str3 = this.j;
|
||
|
if (str3 == null) {
|
||
|
str3 = "";
|
||
|
}
|
||
|
customTransferAndPayItem.setValue(str3);
|
||
|
customTransferAndPayItem.setFullDivider(true);
|
||
|
TextView textView2 = this.textDescription;
|
||
|
if (textView2 != null) {
|
||
|
textView = textView2;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(getString(R.string.ccm_e_statement_successful_description));
|
||
|
}
|
||
|
|
||
|
@OnClick
|
||
|
public final void onClickReturnButton() {
|
||
|
Intent intent = new Intent(getContext(), (Class<?>) CreditCardDetailActivity.class);
|
||
|
intent.setFlags(603979776);
|
||
|
FragmentActivity activity = getActivity();
|
||
|
if (activity != null) {
|
||
|
activity.finish();
|
||
|
}
|
||
|
startActivity(intent);
|
||
|
}
|
||
|
}
|