107 lines
3.4 KiB
Java
107 lines
3.4 KiB
Java
package com.scb.phone.view.fragment.transferandpay;
|
|
|
|
import android.content.ActivityNotFoundException;
|
|
import android.content.Intent;
|
|
import android.net.Uri;
|
|
import android.os.Build;
|
|
import android.os.Bundle;
|
|
import android.os.Parcelable;
|
|
import android.view.LayoutInflater;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.widget.TextView;
|
|
import butterknife.BindView;
|
|
import butterknife.ButterKnife;
|
|
import com.huawei.hms.support.api.entity.common.CommonConstant;
|
|
import com.scb.phone.R;
|
|
import com.scb.phone.view.fragment.BaseFragment;
|
|
import com.scb.phone.view.fragment.transferandpay.BNPLNoLoanFragment;
|
|
import o.C1203Xy;
|
|
import o.C14957gcv;
|
|
import o.C6291cOe;
|
|
import o.InterfaceC13391fZD;
|
|
import o.guQ;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public final class BNPLNoLoanFragment extends Hilt_BNPLNoLoanFragment {
|
|
public static final IeS d = new IeS(0);
|
|
private String c = "";
|
|
|
|
@InterfaceC13391fZD
|
|
public C6291cOe presenter;
|
|
|
|
@BindView
|
|
public TextView tvApplyLoan;
|
|
|
|
/* loaded from: classes5.dex */
|
|
public static final class IeS {
|
|
private IeS() {
|
|
}
|
|
|
|
public /* synthetic */ IeS(byte b) {
|
|
this();
|
|
}
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
|
Parcelable parcelable;
|
|
C14957gcv.e(layoutInflater, "");
|
|
Bundle arguments = getArguments();
|
|
if (arguments != null) {
|
|
String string = arguments.getString("DEEPLINK_INTRO");
|
|
if (string == null) {
|
|
string = "";
|
|
}
|
|
if (Build.VERSION.SDK_INT >= 33) {
|
|
parcelable = (Parcelable) arguments.getParcelable("BILL_PAYMENT_SCAN", C1203Xy.class);
|
|
} else {
|
|
Parcelable parcelable2 = arguments.getParcelable("BILL_PAYMENT_SCAN");
|
|
if (!(parcelable2 instanceof C1203Xy)) {
|
|
parcelable2 = null;
|
|
}
|
|
parcelable = (C1203Xy) parcelable2;
|
|
}
|
|
C1203Xy c1203Xy = (C1203Xy) parcelable;
|
|
if (this.presenter == null) {
|
|
C14957gcv.a("");
|
|
}
|
|
this.c = C6291cOe.c(string, c1203Xy);
|
|
}
|
|
return layoutInflater.inflate(R.layout.2131559635, viewGroup, false);
|
|
}
|
|
|
|
@Override // androidx.fragment.app.Fragment
|
|
public final void onViewCreated(View view, Bundle bundle) {
|
|
C14957gcv.e(view, "");
|
|
super.onViewCreated(view, bundle);
|
|
((BaseFragment) this).a = ButterKnife.c(this, view);
|
|
TextView textView = this.tvApplyLoan;
|
|
if (textView == null) {
|
|
C14957gcv.a("");
|
|
textView = null;
|
|
}
|
|
textView.setOnClickListener(new View.OnClickListener(this) { // from class: o.fCv
|
|
private BNPLNoLoanFragment a;
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view2) {
|
|
BNPLNoLoanFragment.c(this.a);
|
|
}
|
|
|
|
{
|
|
this.a = this;
|
|
}
|
|
});
|
|
}
|
|
|
|
public static /* synthetic */ void c(BNPLNoLoanFragment bNPLNoLoanFragment) {
|
|
C14957gcv.e(bNPLNoLoanFragment, "");
|
|
try {
|
|
bNPLNoLoanFragment.startActivity(new Intent(CommonConstant.ACTION.HWID_SCHEME_URL, Uri.parse(bNPLNoLoanFragment.c)));
|
|
} catch (ActivityNotFoundException e) {
|
|
guQ.e(e);
|
|
}
|
|
}
|
|
}
|