what-the-bank/sources/com/scb/phone/view/fragment/transferandpay/FixedTransferSuccessFragmen...

750 lines
28 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.fragment.transferandpay;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.text.Editable;
import android.text.InputFilter;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
import androidx.core.view.ViewCompat;
import androidx.fragment.app.FragmentActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import butterknife.Optional;
import butterknife.Unbinder;
import com.scb.phone.R;
import com.scb.phone.view.activity.BaseActivity;
import com.scb.phone.view.activity.HomeActivity;
import com.scb.phone.view.activity.transferandpay.transfer.TransferActivity;
import com.scb.phone.view.adapter.transferandpay.FixedTransferDepositSuccessTransactionAdapter;
import com.scb.phone.view.custom.common.CustomInputDialog;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayItem;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPaySource;
import com.scb.phone.view.custom.transferandpay.CustomTransferAndPayTarget;
import com.scb.phone.view.fragment.transferandpay.FixedTransferSuccessFragment;
import java.util.Calendar;
import o.AbstractC13163fSk;
import o.C0693Mj;
import o.C10083dw;
import o.C10383eCj;
import o.C10457eEr;
import o.C1187Xm;
import o.C12669fDv;
import o.C13417fZt;
import o.C6213cMO;
import o.C6583cXR;
import o.EZ;
import o.EnumC8951daY;
import o.InterfaceC12940fLr;
import o.InterfaceC13391fZD;
import o.InterfaceC9662dny;
import o.WmB;
import o.ZI;
import o.cMP;
import o.eBM;
import o.fKR;
import o.fKY;
import o.fRR;
import o.fSJ;
import o.fSQ;
import o.gjJ;
import o.iRl;
import o.pyT;
import org.jmrtd.lds.ImageInfo;
/* loaded from: classes5.dex */
public class FixedTransferSuccessFragment extends Hilt_FixedTransferSuccessFragment implements InterfaceC9662dny, InterfaceC12940fLr {
@BindView
protected Button buttonSaveSlip;
@BindView
protected Button buttonShareSlip;
private CustomInputDialog c;
@BindView
protected CustomTransferAndPayItem customFee;
@BindView
protected CustomTransferAndPayItem customInterest;
@BindView
protected CustomTransferAndPayItem customNetAmount;
@BindView
protected CustomTransferAndPaySource customSource;
@BindView
protected CustomTransferAndPayTarget customTarget;
@BindView
protected CustomTransferAndPayItem customWithholdingTax;
private fSJ d;
@BindView
protected View dividerButtons;
private WmB h = new WmB();
private C1187Xm i;
@InterfaceC13391fZD
public cMP presenter;
@BindView
protected RecyclerView recyclerView;
@BindView
protected TextView textViewNoteTitle;
@BindView
protected TextView textViewNoteValue;
@BindView
protected TextView textViewRefId;
@BindView
protected TextView textViewRemainingBalance;
@BindView
protected TextView textViewSuccessfulTransfer;
@BindView
protected TextView textViewTransactionDate;
@BindView
protected TextView textViewUnsuccessfulTransfer;
/* loaded from: classes5.dex */
public class SlipScreenshot_ViewBinding implements Unbinder {
private SlipScreenshot d;
public SlipScreenshot_ViewBinding(SlipScreenshot slipScreenshot, View view) {
this.d = slipScreenshot;
slipScreenshot.slipTextViewSuccessfulTransfer = (TextView) pyT.e(view, R.id.tv_successful_transfer, "field 'slipTextViewSuccessfulTransfer'", TextView.class);
slipScreenshot.slipTextViewUnsuccessfulTransfer = (TextView) pyT.e(view, R.id.tv_unsuccessful_transfer, "field 'slipTextViewUnsuccessfulTransfer'", TextView.class);
slipScreenshot.slipTextViewTransactionDate = (TextView) pyT.e(view, R.id.tv_transaction_date, "field 'slipTextViewTransactionDate'", TextView.class);
slipScreenshot.slipTextViewRefId = (TextView) pyT.e(view, R.id.tv_ref_id, "field 'slipTextViewRefId'", TextView.class);
slipScreenshot.slipCustomSource = (CustomTransferAndPaySource) pyT.e(view, R.id.ctp_source, "field 'slipCustomSource'", CustomTransferAndPaySource.class);
slipScreenshot.slipCustomTarget = (CustomTransferAndPayTarget) pyT.e(view, R.id.ctp_target, "field 'slipCustomTarget'", CustomTransferAndPayTarget.class);
slipScreenshot.slipTextViewNoteTitle = (TextView) pyT.e(view, R.id.tv_note_title, "field 'slipTextViewNoteTitle'", TextView.class);
slipScreenshot.slipTextViewNoteValue = (TextView) pyT.e(view, R.id.tv_note_value, "field 'slipTextViewNoteValue'", TextView.class);
slipScreenshot.slipCustomNetAmount = (CustomTransferAndPayItem) pyT.e(view, R.id.ctp_net_amount, "field 'slipCustomNetAmount'", CustomTransferAndPayItem.class);
slipScreenshot.slipCustomInterest = (CustomTransferAndPayItem) pyT.e(view, R.id.ctp_interest, "field 'slipCustomInterest'", CustomTransferAndPayItem.class);
slipScreenshot.slipCustomWithholdingTax = (CustomTransferAndPayItem) pyT.e(view, R.id.ctp_withholding_tax, "field 'slipCustomWithholdingTax'", CustomTransferAndPayItem.class);
slipScreenshot.slipCustomFee = (CustomTransferAndPayItem) pyT.e(view, R.id.ctp_fee, "field 'slipCustomFee'", CustomTransferAndPayItem.class);
slipScreenshot.slipRecyclerView = (RecyclerView) pyT.e(view, R.id.recycler_view, "field 'slipRecyclerView'", RecyclerView.class);
}
@Override // butterknife.Unbinder
public final void a() {
SlipScreenshot slipScreenshot = this.d;
if (slipScreenshot == null) {
throw new IllegalStateException("Bindings already cleared.");
}
this.d = null;
slipScreenshot.slipTextViewSuccessfulTransfer = null;
slipScreenshot.slipTextViewUnsuccessfulTransfer = null;
slipScreenshot.slipTextViewTransactionDate = null;
slipScreenshot.slipTextViewRefId = null;
slipScreenshot.slipCustomSource = null;
slipScreenshot.slipCustomTarget = null;
slipScreenshot.slipTextViewNoteTitle = null;
slipScreenshot.slipTextViewNoteValue = null;
slipScreenshot.slipCustomNetAmount = null;
slipScreenshot.slipCustomInterest = null;
slipScreenshot.slipCustomWithholdingTax = null;
slipScreenshot.slipCustomFee = null;
slipScreenshot.slipRecyclerView = null;
}
}
@Override // o.InterfaceC12940fLr
public final /* synthetic */ Activity aAy_() {
return super.getActivity();
}
public static FixedTransferSuccessFragment d(C1187Xm c1187Xm) {
FixedTransferSuccessFragment fixedTransferSuccessFragment = new FixedTransferSuccessFragment();
Bundle bundle = new Bundle();
bundle.putParcelable("com.scb.phone.EXTRA_SUCCESS_DISPLAY", c1187Xm);
fixedTransferSuccessFragment.setArguments(bundle);
return fixedTransferSuccessFragment;
}
@Override // androidx.fragment.app.Fragment
public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
View inflate = layoutInflater.inflate(R.layout.2131559661, viewGroup, false);
ButterKnife.c(this, inflate);
this.presenter.e((cMP) this);
return inflate;
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroy() {
this.presenter.w_();
super.onDestroy();
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onActivityCreated(Bundle bundle) {
cMP cmp;
super.onActivityCreated(bundle);
Bundle arguments = getArguments();
if (arguments == null || !arguments.containsKey("com.scb.phone.EXTRA_SUCCESS_DISPLAY")) {
return;
}
final C1187Xm c1187Xm = (C1187Xm) arguments.getParcelable("com.scb.phone.EXTRA_SUCCESS_DISPLAY");
this.i = c1187Xm;
if (c1187Xm == null || (cmp = this.presenter) == null) {
return;
}
cmp.a = c1187Xm;
ZI.IeS ieS = new ZI.IeS(c1187Xm) { // from class: o.cMU
private C1187Xm a;
@Override // o.ZI.IeS
public final void e(Object obj) {
cMP.a(this.a, (InterfaceC9662dny) obj);
}
{
this.a = c1187Xm;
}
};
if (cmp.f != 0) {
ieS.e(cmp.f);
}
final boolean V = cmp.d.a.V();
ZI.IeS ieS2 = new ZI.IeS(V) { // from class: o.cMT
private boolean a;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9662dny) obj).d(this.a);
}
{
this.a = V;
}
};
if (cmp.f != 0) {
ieS2.e(cmp.f);
}
if (V) {
C6213cMO c6213cMO = new C6213cMO(cmp);
if (cmp.f != 0) {
c6213cMO.e(cmp.f);
}
}
}
@Override // o.InterfaceC9662dny
public final void d(boolean z) {
this.buttonSaveSlip.setVisibility(z ? 8 : 0);
this.dividerButtons.setVisibility(z ? 8 : 0);
}
@Override // o.InterfaceC9662dny
public final void a(String str) {
v("share_slip_action");
Intent intent = new Intent("android.intent.action.SEND");
intent.setType(ImageInfo.JPEG_MIME_TYPE);
intent.addFlags(1);
intent.putExtra("android.intent.extra.STREAM", Uri.parse(str));
startActivity(Intent.createChooser(intent, getString(R.string.share_slip)));
}
@Override // o.InterfaceC9662dny
public final void d(String str) {
e(R.string.favourite_added_successfully, EnumC8951daY.SUCCESS);
CustomInputDialog customInputDialog = this.c;
if (customInputDialog != null) {
customInputDialog.dismiss();
}
this.customTarget.setFavoriteName(str);
this.customTarget.setAddFavoriteButtonVisible(false);
}
@Override // o.InterfaceC9662dny
public final void b() {
this.customTarget.setAddFavoriteButtonVisible(false);
}
@Override // com.scb.phone.view.fragment.BaseFragment, androidx.fragment.app.Fragment
public void onDestroyView() {
super.onDestroyView();
this.presenter.w_();
fSJ fsj = this.d;
if (fsj == null || fsj.isDisposed()) {
return;
}
this.d.dispose();
}
public final void h() {
Context context = getContext();
if (isDetached() || context == null) {
return;
}
final cMP cmp = this.presenter;
ZI.IeS ieS = new ZI.IeS(cmp) { // from class: o.cMW
private cMP d;
@Override // o.ZI.IeS
public final void e(Object obj) {
((InterfaceC9662dny) obj).d(this.d.a, true);
}
{
this.d = cmp;
}
};
if (cmp.f != 0) {
ieS.e(cmp.f);
}
}
public final void f() {
Context context = getContext();
if (isDetached() || context == null) {
return;
}
cMP cmp = this.presenter;
C6213cMO c6213cMO = new C6213cMO(cmp);
if (cmp.f != 0) {
c6213cMO.e(cmp.f);
}
}
@Override // androidx.fragment.app.Fragment
public void onRequestPermissionsResult(int i, String[] strArr, int[] iArr) {
super.onRequestPermissionsResult(i, strArr, iArr);
C12669fDv.a(this, i, iArr);
}
public final void b(C1187Xm c1187Xm, final boolean z) {
this.d = AbstractC13163fSk.fromCallable(new fKY(new SlipScreenshot(this), new HBt(this, String.format(getString(R.string.fixed_transfer_success_slip_file_name), String.valueOf(Calendar.getInstance().getTimeInMillis())), z, c1187Xm), getActivity())).observeOn(fRR.e()).subscribeOn(C13417fZt.b()).subscribe(new fSQ(this, z) { // from class: o.fDp
private boolean b;
private FixedTransferSuccessFragment c;
@Override // o.fSQ
public final void c(Object obj) {
FixedTransferSuccessFragment.axN_(this.c, this.b, (Uri) obj);
}
{
this.c = this;
this.b = z;
}
}, new fSQ(this) { // from class: o.fDr
private FixedTransferSuccessFragment e;
@Override // o.fSQ
public final void c(Object obj) {
FixedTransferSuccessFragment fixedTransferSuccessFragment = this.e;
guQ.a((Throwable) obj, "onSaveScreenshotError", new Object[0]);
FragmentActivity activity = fixedTransferSuccessFragment.getActivity();
if (fixedTransferSuccessFragment.isDetached() || activity == null) {
return;
}
fixedTransferSuccessFragment.e(com.scb.phone.R.string.saved_slip_error, EnumC8951daY.ERROR);
}
{
this.e = this;
}
});
}
@Override // o.InterfaceC9662dny
public final void e(String str) {
FragmentActivity activity = getActivity();
if (gjJ.b((CharSequence) str) || !getUserVisibleHint() || activity == null) {
return;
}
e(R.string.saved_slip, EnumC8951daY.SUCCESS);
}
/* JADX INFO: Access modifiers changed from: package-private */
@OnClick
@Optional
public void onAddFavoriteClick() {
CustomInputDialog b = CustomInputDialog.b(getContext());
this.c = b;
String string = getString(R.string.favourite_name);
if (string != null) {
b.mTitleTextView.setVisibility(0);
b.mTitleTextView.setText(string);
}
this.c.mEditTextView.addTextChangedListener(new TextWatcher(this) { // from class: com.scb.phone.view.fragment.transferandpay.FixedTransferSuccessFragment.1
private FixedTransferSuccessFragment e;
@Override // android.text.TextWatcher
public final void beforeTextChanged(CharSequence charSequence, int i, int i2, int i3) {
}
@Override // android.text.TextWatcher
public final void onTextChanged(CharSequence charSequence, int i, int i2, int i3) {
}
{
this.e = this;
}
@Override // android.text.TextWatcher
public final void afterTextChanged(Editable editable) {
this.e.c.mErrorTextView.setVisibility(8);
}
});
this.c.mEditTextView.setFilters(new InputFilter[]{new InputFilter.LengthFilter(20)});
this.c.setCanceledOnTouchOutside(false);
this.c.mEditTextView.setVisibility(0);
this.c.apc_(R.string.cancel, new DialogInterface.OnClickListener() { // from class: o.fDu
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
});
CustomInputDialog customInputDialog = this.c;
String string2 = getString(R.string.add_favourite);
DialogInterface.OnClickListener onClickListener = new DialogInterface.OnClickListener(this) { // from class: o.fDx
private FixedTransferSuccessFragment c;
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
FixedTransferSuccessFragment.d(this.c);
}
{
this.c = this;
}
};
if (string2 != null) {
customInputDialog.mPositiveButton.setText(string2);
customInputDialog.mPositiveButton.setOnClickListener(new eBM(customInputDialog, onClickListener, false));
}
if (!isAdded() || getContext() == null) {
return;
}
this.c.show();
}
@OnClick
public void onReturnToTransferClick() {
FragmentActivity activity = getActivity();
if (activity != null) {
WmB wmB = this.h;
if (getActivity() != null) {
wmB.c(((BaseActivity) getActivity()).scbAnalytics, "continue_to_transfer");
}
C10457eEr.aqd_(this, new Intent("com.scb.phone/BROADCAST_REFRESH_SOURCE_ACCOUNTS"));
if (!HomeActivity.r()) {
getActivity().finishAffinity();
}
Intent intent = new Intent(activity, (Class<?>) TransferActivity.class);
intent.addFlags(603979776);
intent.putExtra("com.scb.phone.EXTRA_CONTINUE_TO_TRANSFER", true);
intent.putExtra("com.scb.phone.EXTRA_ACCOUNT_NUMBER", this.i.f);
startActivity(intent);
}
}
@OnClick
public void onReturnToHomeClick() {
FragmentActivity activity = getActivity();
if (activity != null) {
if (!HomeActivity.r()) {
getActivity().finishAffinity();
}
Intent intent = new Intent(activity, (Class<?>) HomeActivity.class);
intent.addFlags(603979776);
intent.putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_LAYOUT", R.id.account_summary_tab);
intent.putExtra("com.scb.phone.EXTRA_NEW_INSTANCE_REFRESH", true);
startActivity(intent);
}
}
/* loaded from: classes5.dex */
protected class HBt extends EZ {
private FixedTransferSuccessFragment c;
protected C1187Xm d;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
HBt(FixedTransferSuccessFragment fixedTransferSuccessFragment, String str, boolean z, C1187Xm c1187Xm) {
super(R.layout.2131560098, str, z);
this.c = fixedTransferSuccessFragment;
this.d = c1187Xm;
}
}
/* loaded from: classes5.dex */
protected class SlipScreenshot extends fKR<HBt> {
private FixedTransferSuccessFragment a;
@BindView
CustomTransferAndPayItem slipCustomFee;
@BindView
CustomTransferAndPayItem slipCustomInterest;
@BindView
CustomTransferAndPayItem slipCustomNetAmount;
@BindView
CustomTransferAndPaySource slipCustomSource;
@BindView
CustomTransferAndPayTarget slipCustomTarget;
@BindView
CustomTransferAndPayItem slipCustomWithholdingTax;
@BindView
RecyclerView slipRecyclerView;
@BindView
TextView slipTextViewNoteTitle;
@BindView
TextView slipTextViewNoteValue;
@BindView
TextView slipTextViewRefId;
@BindView
TextView slipTextViewSuccessfulTransfer;
@BindView
TextView slipTextViewTransactionDate;
@BindView
TextView slipTextViewUnsuccessfulTransfer;
@Override // o.fKR
public final /* synthetic */ void b(HBt hBt, View view) {
ButterKnife.c(this, view);
C1187Xm c1187Xm = hBt.d;
if (TextUtils.isEmpty(c1187Xm.k)) {
this.slipTextViewSuccessfulTransfer.setVisibility(8);
} else {
this.slipTextViewSuccessfulTransfer.setText(c1187Xm.k);
}
if (TextUtils.isEmpty(c1187Xm.w)) {
this.slipTextViewUnsuccessfulTransfer.setVisibility(8);
} else {
this.slipTextViewUnsuccessfulTransfer.setText(c1187Xm.w);
}
this.slipTextViewTransactionDate.setText(c1187Xm.x);
this.slipTextViewRefId.setText(c1187Xm.f8449o);
this.slipCustomSource.setSourceName(c1187Xm.a);
this.slipCustomSource.setAccountNumber(c1187Xm.b);
this.slipCustomSource.setAvatar(c1187Xm.c);
this.slipCustomTarget.setTargetName(c1187Xm.t);
this.slipCustomTarget.setReferenceNumbers(c1187Xm.q);
this.slipCustomTarget.setAvatar(c1187Xm.s);
if (c1187Xm.h) {
this.slipCustomTarget.setFavoriteName(c1187Xm.d);
} else {
this.slipCustomTarget.setAddFavoriteButtonVisible(true);
}
if (TextUtils.isEmpty(c1187Xm.g)) {
this.slipTextViewNoteTitle.setVisibility(8);
this.slipTextViewNoteValue.setVisibility(8);
this.slipCustomTarget.setDividerVisibility(false);
} else {
this.slipTextViewNoteValue.setText(c1187Xm.g);
this.slipCustomTarget.setDividerVisibility(true);
}
this.slipCustomTarget.setAddFavoriteButtonVisible(false);
this.slipCustomNetAmount.setValue(c1187Xm.n);
this.slipCustomInterest.setValue(c1187Xm.r);
this.slipCustomWithholdingTax.setValue(c1187Xm.v);
this.slipCustomFee.setValue(c1187Xm.p);
FixedTransferDepositSuccessTransactionAdapter fixedTransferDepositSuccessTransactionAdapter = new FixedTransferDepositSuccessTransactionAdapter(c1187Xm.e);
this.a.getContext();
LinearLayoutManager linearLayoutManager = new LinearLayoutManager();
this.slipRecyclerView.d(new C10383eCj(), -1);
this.slipRecyclerView.setLayoutManager(linearLayoutManager);
ViewCompat.d((View) this.slipRecyclerView, false);
this.slipRecyclerView.setAdapter(fixedTransferDepositSuccessTransactionAdapter);
}
SlipScreenshot(FixedTransferSuccessFragment fixedTransferSuccessFragment) {
this.a = fixedTransferSuccessFragment;
}
}
public static /* synthetic */ void d(FixedTransferSuccessFragment fixedTransferSuccessFragment) {
if (String.valueOf(fixedTransferSuccessFragment.c.mEditTextView.getText()) != null) {
if (!((Boolean) C6583cXR.c(new Object[]{String.valueOf(fixedTransferSuccessFragment.c.mEditTextView.getText())}, -1032102340, 1032102340, (int) System.currentTimeMillis())).booleanValue()) {
CustomInputDialog customInputDialog = fixedTransferSuccessFragment.c;
String string = fixedTransferSuccessFragment.getString(R.string.favorite_invalid_character);
customInputDialog.mErrorTextView.setVisibility(0);
customInputDialog.mErrorTextView.setText(string);
return;
}
cMP cmp = fixedTransferSuccessFragment.presenter;
C1187Xm c1187Xm = fixedTransferSuccessFragment.i;
String valueOf = String.valueOf(fixedTransferSuccessFragment.c.mEditTextView.getText());
String str = gjJ.b((CharSequence) c1187Xm.i) ? "TRANSFER" : c1187Xm.i;
String str2 = gjJ.b((CharSequence) c1187Xm.l) ? "ALL" : c1187Xm.l;
C10083dw c = C10083dw.c();
c.E = valueOf;
c.B = c1187Xm.q;
c.A = str;
c.J = str2;
c.H = c1187Xm.j;
c.z = c1187Xm.b;
c.J = str2;
if (cmp.f != 0) {
cmp.f.y();
}
cmp.d.a(c);
iRl irl = cmp.d;
irl.d(irl.i, new cMP.Sts(cmp, c.E));
}
}
public static /* synthetic */ void axN_(FixedTransferSuccessFragment fixedTransferSuccessFragment, final boolean z, Uri uri) {
cMP cmp = fixedTransferSuccessFragment.presenter;
final String obj = uri.toString();
boolean z2 = !gjJ.b((CharSequence) obj);
ZI.IeS ieS = new ZI.IeS(z, obj) { // from class: o.cMS
private boolean a;
private String c;
@Override // o.ZI.IeS
public final void e(Object obj2) {
cMP.a(this.a, this.c, (InterfaceC9662dny) obj2);
}
{
this.a = z;
this.c = obj;
}
};
if (!z2 || cmp.f == 0) {
return;
}
ieS.e(cmp.f);
}
@Override // o.InterfaceC9662dny
public final void d(C0693Mj c0693Mj) {
String str;
CustomInputDialog customInputDialog = this.c;
if (customInputDialog == null) {
return;
}
if (c0693Mj.c.length() > 0) {
str = c0693Mj.c;
} else {
str = c0693Mj.d;
}
customInputDialog.mErrorTextView.setVisibility(0);
customInputDialog.mErrorTextView.setText(str);
}
@Override // o.InterfaceC9662dny
public final void b(C1187Xm c1187Xm) {
String str;
if (TextUtils.isEmpty(c1187Xm.k)) {
this.textViewSuccessfulTransfer.setVisibility(8);
} else {
this.textViewSuccessfulTransfer.setText(c1187Xm.k);
}
if (TextUtils.isEmpty(c1187Xm.w)) {
this.textViewUnsuccessfulTransfer.setVisibility(8);
} else {
this.textViewUnsuccessfulTransfer.setText(c1187Xm.w);
}
this.textViewTransactionDate.setText(c1187Xm.x);
this.textViewRefId.setText(c1187Xm.f8449o);
this.customSource.setSourceName(c1187Xm.a);
this.customSource.setAccountNumber(c1187Xm.b);
this.customSource.setAvatar(c1187Xm.c);
this.customTarget.setTargetName(c1187Xm.t);
this.customTarget.setReferenceNumbers(c1187Xm.q);
this.customTarget.setAvatar(c1187Xm.s);
if (!c1187Xm.h) {
this.customTarget.setAddFavoriteButtonVisible(true);
} else {
if (c1187Xm.d == null) {
str = "";
} else {
str = c1187Xm.d;
}
this.customTarget.setFavoriteName(str);
}
String str2 = c1187Xm.g;
if (TextUtils.isEmpty(str2)) {
this.textViewNoteTitle.setVisibility(8);
this.textViewNoteValue.setVisibility(8);
this.customTarget.setDividerVisibility(false);
} else {
this.customTarget.setDividerVisibility(true);
this.textViewNoteValue.setText(str2);
}
this.customNetAmount.setValue(c1187Xm.n);
this.customInterest.setValue(c1187Xm.r);
this.customWithholdingTax.setValue(c1187Xm.v);
this.customFee.setValue(c1187Xm.p);
FixedTransferDepositSuccessTransactionAdapter fixedTransferDepositSuccessTransactionAdapter = new FixedTransferDepositSuccessTransactionAdapter(c1187Xm.e);
getContext();
LinearLayoutManager linearLayoutManager = new LinearLayoutManager();
this.recyclerView.d(new C10383eCj(), -1);
this.recyclerView.setLayoutManager(linearLayoutManager);
ViewCompat.d((View) this.recyclerView, false);
this.recyclerView.setAdapter(fixedTransferDepositSuccessTransactionAdapter);
if (TextUtils.isEmpty(c1187Xm.m)) {
this.textViewRemainingBalance.setVisibility(8);
} else {
this.textViewRemainingBalance.setText(getString(R.string.remaining_balance, getString(R.string.transfer_tab).toLowerCase(), c1187Xm.m));
}
}
@OnClick
public void onSaveSlipButtonClick() {
if (getActivity() != null) {
if (BaseActivity.P()) {
C12669fDv.c(this);
return;
}
}
C12669fDv.a(this);
}
@OnClick
public void onShareSlipButtonClick() {
if (getActivity() != null) {
if (BaseActivity.P()) {
C12669fDv.b(this);
return;
}
}
C12669fDv.e(this);
}
@Override // o.InterfaceC9662dny
public final void d(C1187Xm c1187Xm, boolean z) {
if (getActivity() != null) {
if (BaseActivity.P()) {
C12669fDv.e(this, c1187Xm, z);
return;
}
}
C12669fDv.a(this, c1187Xm, z);
}
}