what-the-bank/sources/com/scb/phone/view/fragment/ebillsubscription/EBillSubscriptionSuccessFra...

56 lines
2.1 KiB
Java

package com.scb.phone.view.fragment.ebillsubscription;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import butterknife.BindView;
import butterknife.OnClick;
import com.scb.phone.R;
import com.scb.phone.view.activity.ebillsubscription.EBillSubscriptionActivity;
import o.C1191Xp;
import o.C1193Xr;
/* loaded from: classes5.dex */
public class EBillSubscriptionSuccessFragment extends Hilt_EBillSubscriptionSuccessFragment {
@BindView
TextView dateTimeTextView;
@BindView
TextView refIdTextView;
public static EBillSubscriptionSuccessFragment e(C1193Xr c1193Xr, C1191Xp c1191Xp) {
EBillSubscriptionSuccessFragment eBillSubscriptionSuccessFragment = new EBillSubscriptionSuccessFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("com.scb.phone.EXTRA_BILL_PAYMENT_DISPLAY", c1193Xr);
bundle.putParcelable("com.scb.phone.EXTRA_SUCCESS", c1191Xp);
eBillSubscriptionSuccessFragment.setArguments(bundle);
return eBillSubscriptionSuccessFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559627, viewGroup, false);
Bundle arguments = getArguments();
C1193Xr c1193Xr = (C1193Xr) arguments.getParcelable("com.scb.phone.EXTRA_BILL_PAYMENT_DISPLAY");
C1191Xp c1191Xp = (C1191Xp) arguments.getParcelable("com.scb.phone.EXTRA_SUCCESS");
if (c1191Xp != null) {
d(c1191Xp.p, c1193Xr, inflate);
this.refIdTextView.setText(c1191Xp.r);
this.dateTimeTextView.setText(c1191Xp.f);
}
return inflate;
}
@OnClick
public void onReturnToSubscriptionListClick() {
Intent intent = new Intent(getContext(), (Class<?>) EBillSubscriptionActivity.class);
intent.putExtra("com.scb.phone.EXTRA_SUCCESS_EBILL_SUBSCRIPTION", true);
intent.addFlags(603979776);
startActivity(intent);
}
}