289 lines
9.1 KiB
Java
289 lines
9.1 KiB
Java
|
package com.scb.phone.view.fragment.transferandpay;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.TextView;
|
||
|
import butterknife.BindView;
|
||
|
import com.scb.phone.R;
|
||
|
import java.util.Arrays;
|
||
|
import o.C1191Xp;
|
||
|
import o.C14957gcv;
|
||
|
import o.gcH;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public final class BNPLSuccessScreenshotFragment extends Hilt_BNPLSuccessScreenshotFragment {
|
||
|
|
||
|
@BindView
|
||
|
public ViewGroup bnplDivider;
|
||
|
|
||
|
@BindView
|
||
|
public LinearLayout llBNPLLoanDetail;
|
||
|
|
||
|
@BindView
|
||
|
public LinearLayout llBNPLPaymentMethod;
|
||
|
|
||
|
@BindView
|
||
|
public LinearLayout llBNPLSlip;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvAmountWithFeeDiscount;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvAmountWithInterest;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvAmountWithInterestValue;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvAmountWithMonthInterestRateValue;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvAmountWithoutInterest;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvAmountWithoutInterestValue;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvDueDate;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvInstallmentValue;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvInterestRatePerMonth;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvPeriods;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvProductName;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvRepaymentValue;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvTotalInterestFee;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tvTotalInterestValue;
|
||
|
|
||
|
@BindView
|
||
|
public TextView tv_product_value;
|
||
|
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
/* JADX WARN: Type inference failed for: r8v1, types: [android.widget.LinearLayout] */
|
||
|
public final void a(C1191Xp c1191Xp, View view, Context context, boolean z) {
|
||
|
super.a(c1191Xp, view, context);
|
||
|
TextView textView = null;
|
||
|
if (z) {
|
||
|
?? r8 = this.llBNPLSlip;
|
||
|
if (r8 != 0) {
|
||
|
textView = r8;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
TextView textView2 = textView;
|
||
|
C14957gcv.e(textView2, "");
|
||
|
textView2.setVisibility(8);
|
||
|
return;
|
||
|
}
|
||
|
ViewGroup viewGroup = this.bnplDivider;
|
||
|
if (viewGroup == null) {
|
||
|
C14957gcv.a("");
|
||
|
viewGroup = null;
|
||
|
}
|
||
|
ViewGroup viewGroup2 = viewGroup;
|
||
|
C14957gcv.e(viewGroup2, "");
|
||
|
viewGroup2.setVisibility(0);
|
||
|
LinearLayout linearLayout = this.llBNPLLoanDetail;
|
||
|
if (linearLayout == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout = null;
|
||
|
}
|
||
|
LinearLayout linearLayout2 = linearLayout;
|
||
|
C14957gcv.e(linearLayout2, "");
|
||
|
linearLayout2.setVisibility(0);
|
||
|
LinearLayout linearLayout3 = this.llBNPLPaymentMethod;
|
||
|
if (linearLayout3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
linearLayout3 = null;
|
||
|
}
|
||
|
LinearLayout linearLayout4 = linearLayout3;
|
||
|
C14957gcv.e(linearLayout4, "");
|
||
|
linearLayout4.setVisibility(0);
|
||
|
TextView textView3 = this.tvDueDate;
|
||
|
if (textView3 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView3 = null;
|
||
|
}
|
||
|
TextView textView4 = textView3;
|
||
|
C14957gcv.e(textView4, "");
|
||
|
textView4.setVisibility(0);
|
||
|
if (c1191Xp == null || context == null) {
|
||
|
return;
|
||
|
}
|
||
|
String string = context.getString(R.string.percentage);
|
||
|
C14957gcv.c((Object) string, "");
|
||
|
String string2 = context.getString(R.string.billpayment_bnpl_total_interest_fee_1, c1191Xp.p.I, string);
|
||
|
C14957gcv.c((Object) string2, "");
|
||
|
String string3 = context.getString(R.string.billpayment_bnpl_total_interest_fee_2, c1191Xp.p.R, string);
|
||
|
C14957gcv.c((Object) string3, "");
|
||
|
TextView textView5 = this.tvProductName;
|
||
|
if (textView5 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView5 = null;
|
||
|
}
|
||
|
textView5.setText(context.getString(R.string.billpayment_bnpl_from_up_service_title, c1191Xp.p.ae));
|
||
|
TextView textView6 = this.tv_product_value;
|
||
|
if (textView6 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView6 = null;
|
||
|
}
|
||
|
textView6.setText(c1191Xp.p.M);
|
||
|
TextView textView7 = this.tvTotalInterestFee;
|
||
|
if (textView7 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView7 = null;
|
||
|
}
|
||
|
gcH gch = gcH.d;
|
||
|
String format = String.format("%s %s", Arrays.copyOf(new Object[]{string2, string3}, 2));
|
||
|
C14957gcv.c((Object) format, "");
|
||
|
textView7.setText(format);
|
||
|
TextView textView8 = this.tvTotalInterestValue;
|
||
|
if (textView8 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView8 = null;
|
||
|
}
|
||
|
textView8.setText(c1191Xp.p.az);
|
||
|
TextView textView9 = this.tvDueDate;
|
||
|
if (textView9 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView9 = null;
|
||
|
}
|
||
|
textView9.setText(c1191Xp.p.u);
|
||
|
TextView textView10 = this.tvPeriods;
|
||
|
if (textView10 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView10 = null;
|
||
|
}
|
||
|
textView10.setText(context.getString(R.string.billpayment_bnpl_number_of_month_value, c1191Xp.p.aC));
|
||
|
TextView textView11 = this.tvRepaymentValue;
|
||
|
if (textView11 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView11 = null;
|
||
|
}
|
||
|
textView11.setText(context.getString(R.string.billpayment_bnpl_period_value, c1191Xp.p.aw));
|
||
|
TextView textView12 = this.tvInstallmentValue;
|
||
|
if (textView12 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView12 = null;
|
||
|
}
|
||
|
textView12.setText(c1191Xp.p.aG);
|
||
|
String string4 = context.getString(R.string.percentage);
|
||
|
C14957gcv.c((Object) string4, "");
|
||
|
String string5 = context.getString(R.string.billpayment_bnpl_monthly_interest_rate_remark, c1191Xp.p.I, string4);
|
||
|
C14957gcv.c((Object) string5, "");
|
||
|
gcH gch2 = gcH.d;
|
||
|
String format2 = String.format("%s%s", Arrays.copyOf(new Object[]{c1191Xp.p.R, string4}, 2));
|
||
|
C14957gcv.c((Object) format2, "");
|
||
|
TextView textView13 = this.tvInterestRatePerMonth;
|
||
|
if (textView13 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView13 = null;
|
||
|
}
|
||
|
textView13.setText(context.getString(R.string.billpayment_bnpl_monthly_interest_rate_slip_title));
|
||
|
TextView textView14 = this.tvAmountWithMonthInterestRateValue;
|
||
|
if (textView14 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView14 = null;
|
||
|
}
|
||
|
TextView textView15 = textView14;
|
||
|
C14957gcv.e(textView15, "");
|
||
|
textView15.setVisibility(0);
|
||
|
TextView textView16 = this.tvAmountWithMonthInterestRateValue;
|
||
|
if (textView16 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView16 = null;
|
||
|
}
|
||
|
textView16.setText(format2);
|
||
|
TextView textView17 = this.tvAmountWithFeeDiscount;
|
||
|
if (textView17 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView17 = null;
|
||
|
}
|
||
|
TextView textView18 = textView17;
|
||
|
C14957gcv.e(textView18, "");
|
||
|
textView18.setVisibility(0);
|
||
|
TextView textView19 = this.tvAmountWithFeeDiscount;
|
||
|
if (textView19 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView19 = null;
|
||
|
}
|
||
|
textView19.setText(string5);
|
||
|
if (C14957gcv.b((Object) "0.00", (Object) c1191Xp.p.J)) {
|
||
|
return;
|
||
|
}
|
||
|
TextView textView20 = this.tvAmountWithoutInterest;
|
||
|
if (textView20 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView20 = null;
|
||
|
}
|
||
|
TextView textView21 = textView20;
|
||
|
C14957gcv.e(textView21, "");
|
||
|
textView21.setVisibility(0);
|
||
|
TextView textView22 = this.tvAmountWithoutInterestValue;
|
||
|
if (textView22 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView22 = null;
|
||
|
}
|
||
|
TextView textView23 = textView22;
|
||
|
C14957gcv.e(textView23, "");
|
||
|
textView23.setVisibility(0);
|
||
|
TextView textView24 = this.tvAmountWithInterest;
|
||
|
if (textView24 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView24 = null;
|
||
|
}
|
||
|
TextView textView25 = textView24;
|
||
|
C14957gcv.e(textView25, "");
|
||
|
textView25.setVisibility(0);
|
||
|
TextView textView26 = this.tvAmountWithInterestValue;
|
||
|
if (textView26 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView26 = null;
|
||
|
}
|
||
|
TextView textView27 = textView26;
|
||
|
C14957gcv.e(textView27, "");
|
||
|
textView27.setVisibility(0);
|
||
|
TextView textView28 = this.tvAmountWithoutInterestValue;
|
||
|
if (textView28 == null) {
|
||
|
C14957gcv.a("");
|
||
|
textView28 = null;
|
||
|
}
|
||
|
textView28.setText(c1191Xp.p.J);
|
||
|
TextView textView29 = this.tvAmountWithInterestValue;
|
||
|
if (textView29 != null) {
|
||
|
textView = textView29;
|
||
|
} else {
|
||
|
C14957gcv.a("");
|
||
|
}
|
||
|
textView.setText(c1191Xp.p.L);
|
||
|
}
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public static final class Sts {
|
||
|
private Sts() {
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ Sts(byte b) {
|
||
|
this();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
static {
|
||
|
new Sts((byte) 0);
|
||
|
}
|
||
|
}
|