207 lines
6.7 KiB
Java
207 lines
6.7 KiB
Java
|
package com.scb.phone.view.fragment.transferandpay.billpayment;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import android.view.LayoutInflater;
|
||
|
import android.view.View;
|
||
|
import android.view.ViewGroup;
|
||
|
import android.widget.Button;
|
||
|
import android.widget.LinearLayout;
|
||
|
import android.widget.TextView;
|
||
|
import androidx.recyclerview.widget.LinearLayoutManager;
|
||
|
import androidx.recyclerview.widget.RecyclerView;
|
||
|
import butterknife.BindView;
|
||
|
import butterknife.ButterKnife;
|
||
|
import butterknife.OnClick;
|
||
|
import com.scb.phone.R;
|
||
|
import com.scb.phone.view.activity.transferandpay.billpayment.BillPaymentReviewActivity;
|
||
|
import com.scb.phone.view.adapter.chubb.PaymentInfoAdapter;
|
||
|
import com.scb.phone.view.custom.transferandpay.CustomPhotoLeftDetails;
|
||
|
import o.C1189Xo;
|
||
|
import o.C6373cQt;
|
||
|
import o.InterfaceC13391fZD;
|
||
|
import o.InterfaceC9010dbe;
|
||
|
import o.XF;
|
||
|
import o.ZI;
|
||
|
import o.nMh;
|
||
|
|
||
|
/* loaded from: classes5.dex */
|
||
|
public class BillPaymentReviewFragment extends Hilt_BillPaymentReviewFragment implements InterfaceC9010dbe.tOB {
|
||
|
|
||
|
@BindView
|
||
|
TextView banner;
|
||
|
|
||
|
@InterfaceC13391fZD
|
||
|
public C6373cQt billPaymentPresenter;
|
||
|
|
||
|
@BindView
|
||
|
Button btnContinue;
|
||
|
|
||
|
@BindView
|
||
|
LinearLayout llBNPLLoanDetail;
|
||
|
|
||
|
@BindView
|
||
|
LinearLayout llBNPLLoanDetailTitleBg;
|
||
|
|
||
|
@BindView
|
||
|
CustomPhotoLeftDetails movieDetails;
|
||
|
|
||
|
@BindView
|
||
|
protected LinearLayout paymentLayout;
|
||
|
|
||
|
@BindView
|
||
|
RecyclerView recyclerView;
|
||
|
|
||
|
@BindView
|
||
|
View reviewLayout;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvAmountWithInterest;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvAmountWithInterestValue;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvAmountWithoutInterest;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvAmountWithoutInterestValue;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvDueDate;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvInstallmentValue;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvPeriods;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvProductName;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvProductValue;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvRepaymentValue;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvTotalInterestFee;
|
||
|
|
||
|
@BindView
|
||
|
TextView tvTotalInterestValue;
|
||
|
|
||
|
@BindView
|
||
|
View unexpectedDivider;
|
||
|
|
||
|
public static BillPaymentReviewFragment b(C1189Xo c1189Xo) {
|
||
|
BillPaymentReviewFragment billPaymentReviewFragment = new BillPaymentReviewFragment();
|
||
|
Bundle bundle = new Bundle();
|
||
|
bundle.putParcelable("com.scb.phone.EXTRA_REVIEW", c1189Xo);
|
||
|
billPaymentReviewFragment.setArguments(bundle);
|
||
|
return billPaymentReviewFragment;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.fragment.app.Fragment
|
||
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||
|
View inflate = layoutInflater.inflate(R.layout.2131559462, viewGroup, false);
|
||
|
ButterKnife.c(this, inflate);
|
||
|
this.billPaymentPresenter.e((C6373cQt) this);
|
||
|
if (getArguments() != null) {
|
||
|
this.g = (C1189Xo) getArguments().getParcelable("com.scb.phone.EXTRA_REVIEW");
|
||
|
C6373cQt c6373cQt = this.billPaymentPresenter;
|
||
|
final C1189Xo c1189Xo = this.g;
|
||
|
ZI.IeS ieS = new ZI.IeS(c1189Xo) { // from class: o.cQv
|
||
|
private C1189Xo b;
|
||
|
|
||
|
@Override // o.ZI.IeS
|
||
|
public final void e(Object obj) {
|
||
|
C6373cQt.d(this.b, (InterfaceC9010dbe.tOB) obj);
|
||
|
}
|
||
|
|
||
|
{
|
||
|
this.b = c1189Xo;
|
||
|
}
|
||
|
};
|
||
|
if (c6373cQt.f != 0) {
|
||
|
ieS.e(c6373cQt.f);
|
||
|
}
|
||
|
super.a(this.g, inflate, getContext());
|
||
|
}
|
||
|
return inflate;
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9010dbe.tOB
|
||
|
public final void e(C1189Xo c1189Xo) {
|
||
|
this.customFees.mDividerView.setVisibility(0);
|
||
|
this.userNote.divider.setVisibility(0);
|
||
|
this.fullDivider.setVisibility(8);
|
||
|
XF xf = c1189Xo.P;
|
||
|
this.banner.setVisibility(0);
|
||
|
this.banner.setText(xf.i);
|
||
|
this.movieDetails.setVisibility(0);
|
||
|
this.movieDetails.setImageView(xf.j);
|
||
|
this.movieDetails.setTitle(xf.m);
|
||
|
this.movieDetails.setSecondText(xf.a);
|
||
|
this.movieDetails.setThirdText(xf.e);
|
||
|
this.movieDetails.setFourth(xf.c);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9010dbe.tOB
|
||
|
public final void b() {
|
||
|
this.llBNPLLoanDetail.setVisibility(0);
|
||
|
this.llBNPLLoanDetailTitleBg.setBackgroundColor(nMh.getColor(getContext(), R.color.f3032131099810));
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9010dbe.tOB
|
||
|
public final void c() {
|
||
|
if (this.g != null) {
|
||
|
this.tvProductName.setText(getString(R.string.billpayment_bnpl_from_up_service_title, this.g.ae));
|
||
|
this.tvProductValue.setText(this.g.M);
|
||
|
this.tvTotalInterestFee.setVisibility(0);
|
||
|
this.tvTotalInterestFee.setText(getString(R.string.billpayment_bnpl_total_interest_fee_1, this.g.I, getString(R.string.percentage)).concat(getString(R.string.billpayment_bnpl_total_interest_fee_2, this.g.R, getString(R.string.percentage))));
|
||
|
this.tvTotalInterestValue.setText(this.g.az);
|
||
|
if ("".equals(this.g.u)) {
|
||
|
this.tvDueDate.setVisibility(8);
|
||
|
} else {
|
||
|
this.tvDueDate.setVisibility(0);
|
||
|
this.tvDueDate.setText(this.g.u);
|
||
|
}
|
||
|
this.tvPeriods.setText(getString(R.string.billpayment_bnpl_number_of_month_value, this.g.aC));
|
||
|
this.tvRepaymentValue.setText(getString(R.string.billpayment_bnpl_period_value, this.g.aw));
|
||
|
this.tvInstallmentValue.setText(this.g.aG);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9010dbe.tOB
|
||
|
public final void a() {
|
||
|
this.tvAmountWithoutInterest.setVisibility(0);
|
||
|
this.tvAmountWithoutInterestValue.setVisibility(0);
|
||
|
this.tvAmountWithInterest.setVisibility(0);
|
||
|
this.tvAmountWithInterestValue.setVisibility(0);
|
||
|
this.tvAmountWithoutInterestValue.setText(this.g.J);
|
||
|
this.tvAmountWithInterestValue.setText(this.g.L);
|
||
|
}
|
||
|
|
||
|
@Override // o.InterfaceC9010dbe.tOB
|
||
|
public final void d(C1189Xo c1189Xo) {
|
||
|
this.paymentLayout.setVisibility(0);
|
||
|
PaymentInfoAdapter paymentInfoAdapter = new PaymentInfoAdapter(getContext());
|
||
|
RecyclerView recyclerView = this.recyclerView;
|
||
|
getContext();
|
||
|
recyclerView.setLayoutManager(new LinearLayoutManager());
|
||
|
this.recyclerView.setAdapter(paymentInfoAdapter);
|
||
|
this.reviewLayout.setBackgroundColor(nMh.getColor(getContext(), R.color.f14042131100912));
|
||
|
this.recyclerView.setBackgroundColor(nMh.getColor(getContext(), R.color.f14042131100912));
|
||
|
this.unexpectedDivider.setVisibility(8);
|
||
|
paymentInfoAdapter.d = c1189Xo.aa;
|
||
|
paymentInfoAdapter.notifyDataSetChanged();
|
||
|
}
|
||
|
|
||
|
@OnClick
|
||
|
public void onClickConfirm() {
|
||
|
if (getActivity() instanceof BillPaymentReviewActivity) {
|
||
|
((BillPaymentReviewActivity) getActivity()).d(this.g);
|
||
|
}
|
||
|
}
|
||
|
}
|