112 lines
3.8 KiB
Java
112 lines
3.8 KiB
Java
package com.scb.phone.view.fragment.hml;
|
|
|
|
import android.content.ActivityNotFoundException;
|
|
import android.content.Intent;
|
|
import android.net.Uri;
|
|
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 androidx.cardview.widget.CardView;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import butterknife.OnClick;
|
|
import com.bumptech.glide.Glide;
|
|
import com.huawei.hms.support.api.entity.common.CommonConstant;
|
|
import com.scb.phone.R;
|
|
import com.squareup.picasso.Picasso;
|
|
import o.NI;
|
|
import o.bTI;
|
|
import o.guQ;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public class HmlOutcomeRejectFragment extends Hilt_HmlOutcomeRejectFragment {
|
|
|
|
@BindView
|
|
ImageView background;
|
|
private boolean c;
|
|
private NI d = null;
|
|
|
|
@BindView
|
|
TextView financialHealthDescriptionTv;
|
|
|
|
@BindView
|
|
TextView financialHealthTitleTv;
|
|
|
|
@BindView
|
|
CardView healthSection;
|
|
|
|
@BindView
|
|
TextView reapplyDateTime;
|
|
|
|
@BindView
|
|
TextView rejectRemark;
|
|
|
|
@BindView
|
|
ImageView rejectedBackground;
|
|
|
|
@OnClick
|
|
public void onButtonReturnHomeClicked(View view) {
|
|
a();
|
|
}
|
|
|
|
public static HmlOutcomeRejectFragment d(NI ni, bTI bti) {
|
|
HmlOutcomeRejectFragment hmlOutcomeRejectFragment = new HmlOutcomeRejectFragment();
|
|
Bundle bundle = new Bundle();
|
|
bundle.putParcelable("HML_OUTCOME_REJECT_EXTRA", ni);
|
|
bundle.putString("HML_CUSTOMER_TYPE_EXTRA", bti.toString());
|
|
hmlOutcomeRejectFragment.setArguments(bundle);
|
|
return hmlOutcomeRejectFragment;
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
View inflate = layoutInflater.inflate(R.layout.2131559716, (ViewGroup) null, false);
|
|
ButterKnife.c(this, inflate);
|
|
if (getArguments() != null) {
|
|
NI ni = (NI) getArguments().getParcelable("HML_OUTCOME_REJECT_EXTRA");
|
|
this.d = ni;
|
|
if (ni != null) {
|
|
if (ni.c != null && getContext() != null) {
|
|
Picasso.d().e(this.d.c).b(R.drawable.reject_placeholder).aBu_(this.background, null);
|
|
}
|
|
if (this.d.d != null) {
|
|
this.reapplyDateTime.setText(this.d.d);
|
|
} else {
|
|
this.rejectRemark.setText(R.string.auto_bo_reject_date_desc);
|
|
}
|
|
if (this.d.a) {
|
|
this.healthSection.setVisibility(0);
|
|
if (this.d.e != null) {
|
|
Glide.e(requireContext()).c(this.d.e).Dq_(this.rejectedBackground);
|
|
}
|
|
}
|
|
}
|
|
boolean equalsIgnoreCase = "BUSINESS_OWNER".equalsIgnoreCase(getArguments().getString("HML_CUSTOMER_TYPE_EXTRA", "CONSUMER"));
|
|
this.c = equalsIgnoreCase;
|
|
if (equalsIgnoreCase) {
|
|
this.financialHealthTitleTv.setText(R.string.loan_10X1_app_outcome_rejected_health_business_title);
|
|
this.financialHealthDescriptionTv.setText(R.string.loan_10X1_app_outcome_rejected_health_business_description);
|
|
}
|
|
}
|
|
return inflate;
|
|
}
|
|
|
|
@OnClick
|
|
public void onLearnMoreButtonClicked() {
|
|
if (this.d.b != null) {
|
|
try {
|
|
Intent intent = new Intent(CommonConstant.ACTION.HWID_SCHEME_URL);
|
|
intent.putExtra("com.scb.phone.view.activity.deeplink.BaseDeepLinkActivity.EXTRA_FROM_NTB", true);
|
|
intent.setData(Uri.parse(this.d.b));
|
|
intent.setFlags(603979776);
|
|
startActivity(intent);
|
|
} catch (ActivityNotFoundException | NullPointerException e) {
|
|
guQ.e(e);
|
|
}
|
|
}
|
|
}
|
|
}
|