package com.scb.phone.view.fragment.cardmanagement; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; 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 java.util.List; import o.C14881gav; import o.C14957gcv; import o.EnumC1272Zj; import o.GV; import o.pug; /* loaded from: classes5.dex */ public final class StatementChannelSuccessfulFragment extends Hilt_StatementChannelSuccessfulFragment { public static final Sts c = new Sts(0); @BindView public Button btnDone; private GV d; @BindView public TextView tvAddressOrEmail; @BindView public TextView tvAddressTitle; @BindView public TextView tvDateTime; @BindView public TextView tvMaskCardNo; @BindView public TextView tvSuccessTitle; /* 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.2131559940, viewGroup, false); } @Override // androidx.fragment.app.Fragment public final void onCreate(Bundle bundle) { super.onCreate(bundle); Bundle arguments = getArguments(); if (arguments != null) { this.d = (GV) arguments.getParcelable("EXTRA_CHANGE_CHANNEL_SUCCESS_DISPLAY_KEY"); } } @Override // androidx.fragment.app.Fragment public final void onViewCreated(View view, Bundle bundle) { String str; String str2; List list; C14957gcv.e(view, ""); super.onViewCreated(view, bundle); ButterKnife.c(this, view); TextView textView = this.tvMaskCardNo; TextView textView2 = null; if (textView == null) { C14957gcv.a(""); textView = null; } GV gv = this.d; if (gv == null || (list = gv.e) == null) { str = null; } else { C14957gcv.e(list, ""); C14957gcv.e("\n", ""); str = C14881gav.b(list, "\n", null, null, 0, null, null, 62); } textView.setText(str); TextView textView3 = this.tvAddressOrEmail; if (textView3 == null) { C14957gcv.a(""); textView3 = null; } GV gv2 = this.d; if (C14957gcv.b((Object) (gv2 != null ? gv2.c : null), (Object) EnumC1272Zj.EMAIL.name())) { GV gv3 = this.d; str2 = gv3 != null ? gv3.b : null; } else { GV gv4 = this.d; str2 = gv4 != null ? gv4.d : null; } textView3.setText(str2); TextView textView4 = this.tvAddressTitle; if (textView4 == null) { C14957gcv.a(""); textView4 = null; } GV gv5 = this.d; String string = C14957gcv.b((Object) (gv5 != null ? gv5.c : null), (Object) EnumC1272Zj.EMAIL.name()) ? getString(R.string.ccm_email_address) : getString(R.string.mailing_address); C14957gcv.c((Object) string, ""); textView4.setText(string); TextView textView5 = this.tvDateTime; if (textView5 == null) { C14957gcv.a(""); textView5 = null; } GV gv6 = this.d; textView5.setText(gv6 != null ? gv6.a : null); TextView textView6 = this.tvSuccessTitle; if (textView6 != null) { textView2 = textView6; } else { C14957gcv.a(""); } String string2 = getString(R.string.successfully_changed_statement_channel); C14957gcv.c((Object) string2, ""); textView2.setText(string2); c("change_stmt_channel_successful", new pug[0]); } @OnClick public final void onClickDoneButton() { Context context = getContext(); if (context != null) { Intent intent = new Intent(context, (Class) CreditCardDetailActivity.class); intent.setFlags(603979776); FragmentActivity activity = getActivity(); if (activity != null) { activity.finish(); } context.startActivity(intent); } } }