what-the-bank/sources/com/scb/phone/view/fragment/ccrredemption/review/MileageRedemptionSlipFragme...

92 lines
2.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.ccrredemption.review;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.scb.phone.R;
import o.C0467He;
import o.C16316nR;
import o.eLY;
/* loaded from: classes5.dex */
public class MileageRedemptionSlipFragment extends Hilt_MileageRedemptionSlipFragment implements eLY<C0467He> {
private Context c;
@BindView
ImageView ivLogo;
@BindView
TextView txvCardNumber;
@BindView
TextView txvCardType;
@BindView
TextView txvItemDescription;
@BindView
TextView txvLastName;
@BindView
TextView txvMembershipId;
@BindView
TextView txvPoints;
@BindView
TextView txvPointsToRedeem;
@BindView
TextView txvProductName;
@BindView
TextView txvRedemptionDateTime;
@BindView
TextView txvReferenceId;
@BindView
TextView txvSuccessfulText;
@BindView
TextView txvTotalMiles;
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131560107, viewGroup, false);
C0467He c0467He = (C0467He) getActivity().getIntent().getParcelableExtra("com.scb.phone.presentation.view.activity.ccr_redemption.mileage.MileageConfirmRedemptionActivity.KEY_CONFIRM_REDEMPTION_DTO");
c0467He.u = new C16316nR(getResources());
b(c0467He, inflate, getActivity());
return inflate;
}
/* JADX INFO: Access modifiers changed from: private */
@Override // o.eLY
/* renamed from: e, reason: merged with bridge method [inline-methods] */
public void b(C0467He c0467He, View view, Context context) {
this.c = context;
ButterKnife.c(this, view);
this.ivLogo.setVisibility(8);
this.txvSuccessfulText.setText(this.c.getResources().getString(R.string.redeem_successful));
this.txvCardNumber.setText(c0467He.n);
this.txvCardType.setText(c0467He.d);
this.txvLastName.setText(c0467He.v);
this.txvMembershipId.setText(c0467He.y);
this.txvRedemptionDateTime.setText(c0467He.q);
this.txvReferenceId.setText(c0467He.b());
this.txvPointsToRedeem.setText(c0467He.z);
this.txvTotalMiles.setText(c0467He.B);
this.txvProductName.setText(c0467He.p);
this.txvItemDescription.setText(c0467He.a());
if (Integer.parseInt(c0467He.z.replace(",", "")) <= 1) {
this.txvPoints.setText(this.c.getResources().getString(R.string.point_label));
}
}
}