what-the-bank/sources/com/scb/phone/view/fragment/profilemanagement/promptpay/ManagePromptpaySuccessFragm...

85 lines
2.8 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.profilemanagement.promptpay;
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 butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.profilemanagement.promptpay.ManagePromptpayLandingActivity;
import o.UQ;
import o.hXn;
/* loaded from: classes5.dex */
public class ManagePromptpaySuccessFragment extends Hilt_ManagePromptpaySuccessFragment {
@BindView
TextView accountDetails;
@BindView
TextView accountName;
@BindView
TextView accountNumber;
@BindView
ImageView arrowIcon;
@BindView
ImageView citizenIcon;
@BindView
TextView citizenNumber;
private hXn d = new hXn();
@BindView
TextView informationText;
@BindView
TextView titleText;
@OnClick
public void onReturnButton() {
if (getActivity() != null) {
ManagePromptpayLandingActivity.b(getActivity());
getActivity().finish();
}
}
public static ManagePromptpaySuccessFragment d(UQ uq) {
ManagePromptpaySuccessFragment managePromptpaySuccessFragment = new ManagePromptpaySuccessFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("com.scb.phone.EXTRA_MANAGE_PROMPTPAY_FRAGMENT_SUCCESS", uq);
managePromptpaySuccessFragment.setArguments(bundle);
return managePromptpaySuccessFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559752, viewGroup, false);
ButterKnife.c(this, inflate);
if (getArguments() != null && getArguments().getParcelable("com.scb.phone.EXTRA_MANAGE_PROMPTPAY_FRAGMENT_SUCCESS") != null) {
UQ uq = (UQ) getArguments().getParcelable("com.scb.phone.EXTRA_MANAGE_PROMPTPAY_FRAGMENT_SUCCESS");
this.titleText.setText(uq.g);
this.informationText.setText(uq.j);
this.citizenNumber.setText(uq.f);
this.accountNumber.setText(uq.b);
this.accountName.setText(uq.c);
this.accountDetails.setText(uq.a);
this.arrowIcon.setImageResource(uq.d == 0 ? R.drawable.link_icon : R.drawable.unlink_icon);
this.citizenIcon.setImageResource(uq.e == 0 ? R.drawable.ic_mobile : R.drawable.ic_cid);
this.d.e(uq.d == 0 ? "link" : "unlink");
hXn hxn = this.d;
if (getActivity() != null) {
hxn.c(((BaseActivity) getActivity()).scbAnalytics, "managepromptpay_success");
}
}
return inflate;
}
}