what-the-bank/sources/com/scb/phone/view/fragment/cardmanagement/deejungtransfer/DeejungTransferInstallments...

213 lines
7.6 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.cardmanagement.deejungtransfer;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.fragment.app.FragmentActivity;
import com.scb.phone.R;
import o.C12891fKc;
import o.C14957gcv;
import o.GR;
import o.SIR;
import o.gdZ;
import o.jWg;
import o.rkT;
/* loaded from: classes5.dex */
public final class DeejungTransferInstallmentsSummaryFragment extends Hilt_DeejungTransferInstallmentsSummaryFragment {
SIR c;
/* loaded from: classes5.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
@Override // androidx.fragment.app.Fragment
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
C14957gcv.e(layoutInflater, "");
SIR b = SIR.b(getLayoutInflater().inflate(R.layout.2131559964, (ViewGroup) null, false));
C14957gcv.c(b, "");
this.c = b;
ConstraintLayout constraintLayout = b.f8357o;
C14957gcv.c(constraintLayout, "");
return constraintLayout;
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
FragmentActivity activity = getActivity();
if (activity != null) {
Intent intent = activity.getIntent();
C14957gcv.c(intent, "");
if (Build.VERSION.SDK_INT >= 33) {
Bundle extras = intent.getExtras();
if (extras != null) {
r3 = (Parcelable) extras.getParcelable("com.scb.phone.view.activity.card_management.DeejungTransferInstallmentsSummaryFragment.KEY_TRANSFER_INSTALLMENTS_SUMMARY_DISPLAY_MODEL", GR.class);
}
} else {
Bundle extras2 = intent.getExtras();
Parcelable parcelable = extras2 != null ? extras2.getParcelable("com.scb.phone.view.activity.card_management.DeejungTransferInstallmentsSummaryFragment.KEY_TRANSFER_INSTALLMENTS_SUMMARY_DISPLAY_MODEL") : null;
r3 = (GR) (parcelable instanceof GR ? parcelable : null);
}
e((GR) r3, activity.getIntent().getBooleanExtra("IS_SUCCESS", false));
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void e(GR gr, boolean z) {
SIR sir = this.c;
if (sir == null) {
C14957gcv.a("");
sir = null;
}
jWg jwg = sir.h;
jwg.a.setText(R.string.from_label);
jwg.e.setText(gr != null ? gr.b : null);
ImageView imageView = jwg.d;
C14957gcv.c(imageView, "");
String str = gr != null ? gr.a : null;
if (str == null) {
str = "";
}
C12891fKc.azw_(imageView, str);
jwg.c.setText(gr != null ? gr.c : null);
jWg jwg2 = sir.m;
jwg2.a.setText(R.string.to_label);
jwg2.e.setText(gr != null ? gr.p : null);
jwg2.c.setText(gr != null ? gr.s : null);
sir.t.setText(gr != null ? gr.e : null);
sir.d.setText(gr != null ? gr.d : null);
if (gr != null && gr.j) {
LinearLayout linearLayout = sir.n;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
sir.i.setText(R.string.monthly_interest_rate_label);
} else {
LinearLayout linearLayout3 = sir.n;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(8);
sir.i.setText(R.string.yearly_interest_rate_label);
}
sir.j.setText(gr != null ? gr.f : null);
rkT rkt = sir.q;
rkt.e.setText(R.string.total_payment);
rkt.a.setText(gr != null ? gr.v : null);
rkt.b.setText(R.string.principal_label);
rkt.d.setText(gr != null ? gr.u : null);
rkt.c.setText(R.string.interest_label);
rkt.i.setText(gr != null ? gr.w : null);
sir.l.setText(gr != null ? gr.m : null);
if (z) {
View view = sir.e;
C14957gcv.c(view, "");
C14957gcv.e(view, "");
view.setVisibility(4);
}
c(gr);
e(gr);
}
private final void e(GR gr) {
SIR sir = this.c;
if (sir == null) {
C14957gcv.a("");
sir = null;
}
if (C14957gcv.b(gr != null ? gr.g : null, Boolean.TRUE)) {
LinearLayout linearLayout = sir.f;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
sir.b.setText(gr.l);
} else {
LinearLayout linearLayout3 = sir.f;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(8);
}
String str = gr != null ? gr.C : null;
if (!(str == null || gdZ.d((CharSequence) str))) {
LinearLayout linearLayout5 = sir.a;
C14957gcv.c(linearLayout5, "");
LinearLayout linearLayout6 = linearLayout5;
C14957gcv.e(linearLayout6, "");
linearLayout6.setVisibility(0);
sir.c.setText(gr != null ? gr.C : null);
return;
}
LinearLayout linearLayout7 = sir.a;
C14957gcv.c(linearLayout7, "");
LinearLayout linearLayout8 = linearLayout7;
C14957gcv.e(linearLayout8, "");
linearLayout8.setVisibility(8);
}
private final void c(GR gr) {
SIR sir = this.c;
if (sir == null) {
C14957gcv.a("");
sir = null;
}
if (C14957gcv.b(gr != null ? gr.k : null, Boolean.TRUE)) {
TextView textView = sir.r;
String str = gr.y;
if (str == null) {
str = "";
}
textView.setText(str);
TextView textView2 = sir.p;
String str2 = gr.x;
if (str2 == null) {
str2 = "";
}
textView2.setText(str2);
LinearLayout linearLayout = sir.g;
C14957gcv.c(linearLayout, "");
LinearLayout linearLayout2 = linearLayout;
C14957gcv.e(linearLayout2, "");
linearLayout2.setVisibility(0);
LinearLayout linearLayout3 = sir.k;
C14957gcv.c(linearLayout3, "");
LinearLayout linearLayout4 = linearLayout3;
C14957gcv.e(linearLayout4, "");
linearLayout4.setVisibility(0);
return;
}
LinearLayout linearLayout5 = sir.g;
C14957gcv.c(linearLayout5, "");
LinearLayout linearLayout6 = linearLayout5;
C14957gcv.e(linearLayout6, "");
linearLayout6.setVisibility(8);
LinearLayout linearLayout7 = sir.k;
C14957gcv.c(linearLayout7, "");
LinearLayout linearLayout8 = linearLayout7;
C14957gcv.e(linearLayout8, "");
linearLayout8.setVisibility(8);
}
static {
new RVV((byte) 0);
}
}