what-the-bank/sources/com/scb/phone/view/fragment/pointx/PointXSuccessFragment.java

97 lines
3.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.pointx;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import butterknife.OnClick;
import com.scb.phone.R;
import o.C14957gcv;
import o.C2252abB;
import o.C2261abK;
import o.EW;
import o.QI;
import o.cYH;
import o.fHN;
import o.pug;
/* loaded from: classes5.dex */
public final class PointXSuccessFragment extends Hilt_PointXSuccessFragment implements cYH, fHN {
public static final IeS d = new IeS(0);
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
@Override // androidx.fragment.app.Fragment
public final void onViewCreated(View view, Bundle bundle) {
C14957gcv.e(view, "");
super.onViewCreated(view, bundle);
l();
String string = getString(R.string.return_to_home);
C14957gcv.c((Object) string, "");
C14957gcv.e(string, "");
this.buttonReturn.setText(string);
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment, com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onActivityCreated(Bundle bundle) {
super.onActivityCreated(bundle);
Bundle arguments = getArguments();
if (arguments != null) {
this.presenter.e((EW) arguments.getParcelable("EXTRA_POINT_X_SUCCESS"), arguments.getParcelableArrayList("EXTRA_POINT_X_DEEPLINK_BUTTON"));
}
Bundle arguments2 = getArguments();
String string = arguments2 != null ? arguments2.getString("EXTRA_POINT_X_CUSTOMER_ID") : null;
if (string == null) {
string = "";
}
Bundle arguments3 = getArguments();
String string2 = arguments3 != null ? arguments3.getString("EXTRA_POINT_X_SOF_TYPE") : null;
c("scan_n_pay_pointx_success", new pug("customerId", string), new pug("payment_method", string2 != null ? string2 : ""));
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment
public final View awJ_(LayoutInflater layoutInflater, boolean z) {
if (layoutInflater != null) {
return layoutInflater.inflate(R.layout.2131558929, (ViewGroup) null);
}
return null;
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment
public final void c(QI qi) {
super.c(qi);
C2252abB<cYH> c2252abB = this.presenter;
Bundle arguments = getArguments();
String string = arguments != null ? arguments.getString("EXTRA_POINT_X_CUSTOMER_ID") : null;
if (string == null) {
string = "";
}
if (qi.c) {
return;
}
C2261abK c2261abK = new C2261abK("return_to_pointx", string);
if (c2252abB.f != 0) {
c2261abK.e(c2252abB.f);
}
}
@OnClick
public final void onReturnToAccount() {
k(true);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public final void onDestroyView() {
this.presenter.w_();
super.onDestroyView();
}
}