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

131 lines
4.0 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.ZI;
import o.cYH;
import o.fHN;
import o.pug;
/* loaded from: classes5.dex */
public final class PointXPartnerSuccessFragment extends Hilt_PointXPartnerSuccessFragment implements cYH, fHN {
public static final LWm d = new LWm(0);
/* loaded from: classes5.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(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"));
C2252abB<cYH> c2252abB = this.presenter;
final boolean z = arguments.getBoolean("EXTRA_POINT_X_IS_CARD_REPAYMENT", false);
final String string = arguments.getString("EXTRA_POINT_X_CUSTOMER_ID");
if (string == null) {
string = "";
}
ZI.IeS ieS = new ZI.IeS(z, string) { // from class: o.abG
private String c;
private boolean d;
@Override // o.ZI.IeS
public final void e(Object obj) {
C2252abB.a(this.d, this.c, (cYH) obj);
}
{
this.d = z;
this.c = string;
}
};
if (c2252abB.f != 0) {
ieS.e(c2252abB.f);
}
}
}
@Override // o.cYH
public final void c(String str) {
C14957gcv.e(str, "");
c("pointx_payment_success", new pug("customerId", str));
}
@Override // o.cYH
public final void d(String str) {
C14957gcv.e(str, "");
c("pointx_cardrepayment_success", new pug("PointX", str));
}
@Override // com.scb.phone.view.fragment.PurchaseSuccessFragment
public final View awJ_(LayoutInflater layoutInflater, boolean z) {
if (z) {
if (layoutInflater != null) {
return layoutInflater.inflate(R.layout.2131558929, (ViewGroup) null);
}
return null;
}
if (layoutInflater != null) {
return layoutInflater.inflate(R.layout.2131558928, (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();
}
}