导航菜单

页面标题

页面副标题

SpeedCash v6.5.1482 - TransferToAllActivity.java 源代码

正在查看: SpeedCash v6.5.1482 应用的 TransferToAllActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.bm.sc.bebasbayar.ui.activity.cash;

import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.ImageView;
import android.widget.SearchView;
import android.widget.TextView;
import androidx.appcompat.app.ActionBar;
import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bm.sc.auth.ui.cash.internal.TransferInternalActivity;
import com.bm.sc.auth.ui.dialog.QROptionalFragment;
import com.bm.sc.bebasbayar.R;
import com.bm.sc.bebasbayar.adapter.entity.BankAccountEntity;
import com.bm.sc.bebasbayar.adapter.entity.ProdukListEntity;
import com.bm.sc.bebasbayar.adapter.list.CashOutHistoryTransferAllAdapter;
import com.bm.sc.bebasbayar.handler.FirebaseProcessor;
import com.bm.sc.bebasbayar.handler.MessageComposer;
import com.bm.sc.bebasbayar.handler.MessageSender;
import com.bm.sc.bebasbayar.helper.Affinity;
import com.bm.sc.bebasbayar.iface.BBCallback;
import com.bm.sc.bebasbayar.iface.MessageProcess;
import com.bm.sc.bebasbayar.message.BaseMessage;
import com.bm.sc.bebasbayar.message.BusMessage;
import com.bm.sc.bebasbayar.message.MPMessage;
import com.bm.sc.bebasbayar.message.api.APIMessageWrapper;
import com.bm.sc.bebasbayar.message.mp.CashOutMessage;
import com.bm.sc.bebasbayar.message.qr.DataMessage;
import com.bm.sc.bebasbayar.setting.session.AppSession;
import com.bm.sc.bebasbayar.setting.session.CashOutSession;
import com.bm.sc.bebasbayar.ui.activity.OtherHomeMenuActivity;
import com.bm.sc.bebasbayar.ui.activity.PaymentActivity;
import com.bm.sc.bebasbayar.ui.activity.TransactionActivity;
import com.bm.sc.bebasbayar.ui.activity.cash.TransferToAllActivity;
import com.bm.sc.bebasbayar.ui.activity.ubp.Emoney2Activity;
import com.bm.sc.bebasbayar.ui.fragment.cash.CashOutHistoryTransferAllFragment;
import com.bm.sc.bebasbayar.ui.fragment.dialog.OptionListFragment;
import com.bm.sc.bebasbayar.ui.fragment.dialog.OptionListFragment1;
import com.bm.sc.bebasbayar.ui.fragment.dialog.OptionListFragment2;
import com.bm.sc.util.android.Device;
import com.bm.sc.util.common.Var;
import com.bm.sc.util.format.Locales;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Locale;
import java.util.Objects;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
import org.greenrobot.eventbus.ThreadMode;

public class TransferToAllActivity extends TransactionActivity {
    public View i;
    public ArrayList<BankAccountEntity> j;
    public CashOutHistoryTransferAllAdapter k;
    public CashOutSession l;
    public ArrayList<BankAccountEntity> m;
    public TextView n;
    public ImageView o;
    public TextView p;

    public class a implements SearchView.OnQueryTextListener {
        public a() {
        }

        @Override
        public boolean onQueryTextChange(String str) {
            if (str.equals("")) {
                TransferToAllActivity.this.l0();
                TransferToAllActivity.this.findViewById(R.id.ConstraintLayoutEmptyTransaction).setVisibility(8);
                return true;
            }
            String lowerCase = str.toLowerCase(Locale.getDefault());
            ArrayList<BankAccountEntity> arrayList = new ArrayList<>();
            if (TransferToAllActivity.this.m != null) {
                Iterator it = TransferToAllActivity.this.m.iterator();
                while (it.hasNext()) {
                    BankAccountEntity bankAccountEntity = (BankAccountEntity) it.next();
                    boolean z = bankAccountEntity.getBankName().toLowerCase(Locale.getDefault()).contains(lowerCase) || bankAccountEntity.getOwnerName().toLowerCase(Locale.getDefault()).contains(lowerCase) || bankAccountEntity.getAccountCode().toLowerCase(Locale.getDefault()).contains(lowerCase);
                    if (lowerCase != null && (lowerCase.isEmpty() || z)) {
                        arrayList.add(bankAccountEntity);
                    }
                }
            }
            if (arrayList.size() == 0) {
                TransferToAllActivity.this.findViewById(R.id.ConstraintLayoutEmptyTransaction).setVisibility(0);
            } else {
                TransferToAllActivity.this.findViewById(R.id.ConstraintLayoutEmptyTransaction).setVisibility(8);
            }
            TransferToAllActivity.this.k.setBankAccountEntities(arrayList);
            TransferToAllActivity.this.k.notifyDataSetChanged();
            return false;
        }

        @Override
        public boolean onQueryTextSubmit(String str) {
            return true;
        }
    }

    public class b implements MessageProcess {
        public b() {
        }

        public void e(BankAccountEntity bankAccountEntity) {
            TransferToAllActivity.this.setClickHistory(bankAccountEntity);
        }

        public void f(View view) {
            if (TransferToAllActivity.this.m.size() > 0) {
                ?? newInstance = CashOutHistoryTransferAllFragment.newInstance();
                newInstance.setBankAccountEntities(TransferToAllActivity.this.m);
                newInstance.setOnSelectedBankAccount(new CashOutHistoryTransferAllFragment.OnSelectedBankAccount() {
                    @Override
                    public final void selectedBank(BankAccountEntity bankAccountEntity) {
                        TransferToAllActivity.b.this.e(bankAccountEntity);
                    }
                });
                newInstance.show(TransferToAllActivity.this.getSupportFragmentManager(), "history-cashout");
                TransferToAllActivity.this.n.setTextColor(ContextCompat.getColor(TransferToAllActivity.this.getApplicationContext(), R.color.colorPrimaryAlt));
            }
        }

        public void g(BankAccountEntity bankAccountEntity) {
            TransferToAllActivity.this.setClickHistory(bankAccountEntity);
        }

        public void h(View view) {
            Bundle bundle = new Bundle();
            bundle.putSerializable("bankHistoryEntities", TransferToAllActivity.this.m);
            bundle.putString("group:produk", Emoney2Activity.GROUP_PRODUCT_TOP_UP_E_WALLET);
            Affinity.launch(TransferToAllActivity.this, Emoney2Activity.class, bundle);
        }

        @Override
        public void afterProcess(BaseMessage baseMessage) {
            APIMessageWrapper aPIMessageWrapper = new APIMessageWrapper(baseMessage);
            if (aPIMessageWrapper.isOK()) {
                ArrayList<HashMap<String, Object>> data = aPIMessageWrapper.getData();
                TransferToAllActivity.this.m = new ArrayList();
                Objects.requireNonNull(data);
                Iterator<HashMap<String, Object>> it = data.iterator();
                while (it.hasNext()) {
                    HashMap<String, Object> next = it.next();
                    BankAccountEntity bankAccountEntity = new BankAccountEntity();
                    bankAccountEntity.setOwnerName(Var.toString(next.get("nama"), ""));
                    bankAccountEntity.setBankName(Var.toString(next.get("produk"), ""));
                    bankAccountEntity.setUrl_icon(Var.toString(next.get(FirebaseProcessor.KEY_IMAGE_URL), ""));
                    bankAccountEntity.setAccountCode(Var.toString(next.get("idpel"), ""));
                    bankAccountEntity.setBankCode(Var.toString(next.get("bankcode"), ""));
                    bankAccountEntity.setIdProduk(Var.toString(next.get("id_produk"), ""));
                    bankAccountEntity.setProvider_id(Var.toString(next.get("provider_id"), ""));
                    if (Var.toString(next.get("id_produk"), "").equalsIgnoreCase(CashOutMessage.SCCOBIFAST)) {
                        bankAccountEntity.setBifast(true);
                    } else {
                        bankAccountEntity.setBifast(false);
                    }
                    bankAccountEntity.setBifast(bankAccountEntity.getIdProduk().equalsIgnoreCase(CashOutMessage.SCCOBIFAST));
                    TransferToAllActivity.this.m.add(bankAccountEntity);
                }
                TransferToAllActivity.this.j = new ArrayList<>();
                if (TransferToAllActivity.this.m.size() > 5) {
                    for (int i = 0; i < 5; i++) {
                        TransferToAllActivity transferToAllActivity = TransferToAllActivity.this;
                        transferToAllActivity.j.add((BankAccountEntity) transferToAllActivity.m.get(i));
                        TransferToAllActivity.this.k.setBankAccountEntities(TransferToAllActivity.this.j);
                    }
                } else {
                    for (int i2 = 0; i2 < TransferToAllActivity.this.m.size(); i2++) {
                        TransferToAllActivity transferToAllActivity2 = TransferToAllActivity.this;
                        transferToAllActivity2.j.add((BankAccountEntity) transferToAllActivity2.m.get(i2));
                        TransferToAllActivity.this.k.setBankAccountEntities(TransferToAllActivity.this.j);
                    }
                    TransferToAllActivity.this.k.setBankAccountEntities(TransferToAllActivity.this.j);
                }
                if (TransferToAllActivity.this.m.size() == 0) {
                    TransferToAllActivity.this.findViewById(R.id.ConstraintLayoutEmptyTransaction).setVisibility(0);
                    TransferToAllActivity.this.n.setTextColor(ContextCompat.getColor(TransferToAllActivity.this.getApplicationContext(), R.color.grey));
                    TransferToAllActivity.this.findViewById(R.id.recycler_search).setVisibility(8);
                } else {
                    TransferToAllActivity.this.findViewById(R.id.ConstraintLayoutEmptyTransaction).setVisibility(8);
                    TransferToAllActivity.this.n.setTextColor(ContextCompat.getColor(TransferToAllActivity.this.getApplicationContext(), R.color.colorPrimaryAlt));
                    TransferToAllActivity.this.findViewById(R.id.recycler_search).setVisibility(0);
                }
                RecyclerView recyclerView = (RecyclerView) TransferToAllActivity.this.findViewById(R.id.rv_list_cashout);
                LinearLayoutManager linearLayoutManager = new LinearLayoutManager(TransferToAllActivity.this, 1, false);
                recyclerView.setNestedScrollingEnabled(false);
                recyclerView.setLayoutManager(linearLayoutManager);
                recyclerView.setAdapter(TransferToAllActivity.this.k);
                TransferToAllActivity.this.n.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public final void onClick(View view) {
                        TransferToAllActivity.b.this.f(view);
                    }
                });
            } else {
                Affinity.info(TransferToAllActivity.this, false, Var.toString(aPIMessageWrapper.getMap().get(MPMessage.INDEX_DESC), ""));
            }
            TransferToAllActivity.this.k.setOnCashOutListener(new CashOutHistoryTransferAllAdapter.OnCashOutListener() {
                @Override
                public final void onChoose(BankAccountEntity bankAccountEntity2) {
                    TransferToAllActivity.b.this.g(bankAccountEntity2);
                }
            });
            TransferToAllActivity.this.findViewById(R.id.ConstraintLayoutEMoney).setOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    TransferToAllActivity.b.this.h(view);
                }
            });
        }

        @Override
        public void backgroundProcess(long j, long j2, boolean z) {
        }

        @Override
        public void preProcess() {
        }
    }

    public void b0(View view) {
        Bundle bundle = new Bundle();
        bundle.putString("produk", CashOutMessage.SCCOBIFAST);
        Affinity.launch(this, TransferToBank2Activity.class, bundle);
    }

    public void c0(View view) {
        Bundle bundle = new Bundle();
        bundle.putString("produk", "SCCOTACIMB");
        Affinity.launch(this, TransferToBank2Activity.class, bundle);
    }

    public void d0(View view) {
        Affinity.launch(this, TransferInternalActivity.class, TransferInternalActivity.INSTANCE.buildBundleFromHistory("", true));
    }

    public void e0(View view) {
        Bundle bundle = new Bundle();
        bundle.putBoolean("from_menu_transfer_all", true);
        Affinity.launch(this, CashWithdrawActivity.class, bundle);
    }

    public void f0(QROptionalFragment qROptionalFragment) {
        qROptionalFragment.show(getSupportFragmentManager(), FirebaseProcessor.KEY_TITLE);
    }

    public void g0(final QROptionalFragment qROptionalFragment) {
        runOnUiThread(new Runnable() {
            @Override
            public final void run() {
                TransferToAllActivity.this.f0(qROptionalFragment);
            }
        });
    }

    public void h0(View view) {
        final QROptionalFragment newInstance = QROptionalFragment.newInstance();
        new Handler().postDelayed(new Runnable() {
            @Override
            public final void run() {
                TransferToAllActivity.this.g0(newInstance);
            }
        }, 300L);
    }

    public void i0(TextView textView, int i, Boolean bool) {
        if (bool.booleanValue()) {
            textView.setVisibility(8);
        } else {
            textView.setVisibility(0);
        }
        l0();
    }

    public void j0(int i, Boolean bool) {
        if (bool.booleanValue()) {
            Affinity.requestInputPin(this, new BBCallback() {
                @Override
                public final void do_callback(int i2, Object obj) {
                    TransferToAllActivity.this.k0(i2, (String) obj);
                }
            });
        }
    }

    public void k0(int i, String str) {
        setSuksesOrPendingTransaction(true);
        doTransaction(true, null);
    }

    public void l(View view) {
        onBackPressed();
    }

    @Override
    public void closeKeyboard() {
        super.closeKeyboard();
    }

    @Override
    public int getMainProductLogoResId() {
        return 0;
    }

    @Override
    public String getSelectedProductCode() {
        return "";
    }

    @Override
    public BaseMessage getTransactionMessage(boolean z) {
        AppSession appSession = this.appSession;
        String retrieve = appSession.retrieve(appSession.retrieve(AppSession.PROPERTY_MERCHANT_PIN));
        if (!z) {
            CashOutMessage cashOutMessage = new CashOutMessage(this.appSession.retrieve(AppSession.PROPERTY_MERCHANT_ID), retrieve, this.appSession.retrieve(AppSession.PROPERTY_AUTH_TOKEN));
            cashOutMessage.setProcessing_code("COTINQ");
            cashOutMessage.setAdditional_dataValue(9, "IDR");
            try {
                cashOutMessage.setAdditional_dataValue(16, Var.toString(Integer.valueOf(getPackageManager().getPackageInfo(getPackageName(), 0).versionCode), ""));
                return cashOutMessage;
            } catch (PackageManager.NameNotFoundException e) {
                throw new RuntimeException(e);
            }
        }
        CashOutMessage cashOutMessage2 = new CashOutMessage(this.appSession.retrieve(AppSession.PROPERTY_MERCHANT_ID), "", this.appSession.retrieve(AppSession.PROPERTY_AUTH_TOKEN));
        cashOutMessage2.setProcessing_code("COTPAY");
        cashOutMessage2.setAdditional_dataValue(9, "IDR");
        Device.getAddressLocation(this);
        cashOutMessage2.setItem(BaseMessage.INDEX_UUID, Var.toString(Device.getDeviceUUID(getApplicationContext()).toString(), ""));
        cashOutMessage2.setAdditional_dataValue(109, Device.getLogDevice(this));
        try {
            cashOutMessage2.setAdditional_dataValue(16, Var.toString(Integer.valueOf(getPackageManager().getPackageInfo(getPackageName(), 0).versionCode), ""));
            return cashOutMessage2;
        } catch (PackageManager.NameNotFoundException e2) {
            throw new RuntimeException(e2);
        }
    }

    @Override
    public int getViewResource() {
        return R.layout.activity_transfer_to_all;
    }

    @Override
    public String getWikiNameSpace() {
        return null;
    }

    @Override
    public boolean isEnabledVoucher() {
        return false;
    }

    @Override
    public boolean isMainSubscriberId() {
        return false;
    }

    @Override
    public boolean isNeedToDisplayShowcase() {
        return false;
    }

    public final void l0() {
        APIMessageWrapper aPIMessageWrapper = new APIMessageWrapper();
        aPIMessageWrapper.setItem(DataMessage.ID_OUTLET, new AppSession(this).retrieve(AppSession.PROPERTY_MERCHANT_ID));
        aPIMessageWrapper.setItem(BaseMessage.INDEX_VIA, "BB ANDROID");
        aPIMessageWrapper.setItem(BaseMessage.INDEX_APP_ID, "SPEEDCASH");
        MessageComposer messageComposer = new MessageComposer(2, "history/transfer");
        messageComposer.setIs_credential(false);
        messageComposer.setIs_encrypted(false);
        messageComposer.setRequest_method(MessageComposer.GET);
        messageComposer.setData_type(2);
        messageComposer.setShowProgressRegular(true);
        messageComposer.setMessageProcess(new b());
        MessageSender messageSender = new MessageSender(this, messageComposer);
        messageSender.setRequestMessage(aPIMessageWrapper);
        messageSender.execute();
    }

    @Override
    public void onActivityResult(int i, int i2, Intent intent) {
        super.onActivityResult(i, i2, intent);
    }

    @Override
    public void onBackPressed() {
        if (getIntent().getExtras() != null ? Var.toBoolean(Boolean.valueOf(getIntent().getExtras().getBoolean(AppSession.IS_FROM_NEW_HOME)), false) : false) {
            Affinity.purge(this, OtherHomeMenuActivity.class);
        } else {
            super.onBackPressed();
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.l = new CashOutSession(this);
        this.balance_insufficient_container.setVisibility(8);
        this.n = (TextView) findViewById(R.id.tv_look_all_history);
        this.k = new CashOutHistoryTransferAllAdapter(this);
        Bundle extras = getIntent().getExtras();
        if (extras != null) {
            String string = extras.getString("tittle");
            if (getToolbar() != null && string != null) {
                ActionBar supportActionBar = getSupportActionBar();
                Objects.requireNonNull(supportActionBar);
                supportActionBar.setTitle(string);
            }
        }
        if (getToolbar() != null) {
            getToolbar().setNavigationOnClickListener(new View.OnClickListener() {
                @Override
                public final void onClick(View view) {
                    TransferToAllActivity.this.l(view);
                }
            });
        }
        ((SearchView) findViewById(R.id.recycler_search)).setOnQueryTextListener(new a());
        findViewById(R.id.ConstraintLayoutEmptyTransaction).setVisibility(8);
        this.o = (ImageView) findViewById(R.id.imageViewEMoney);
        this.p = (TextView) findViewById(R.id.tittleEMoney);
        findViewById(R.id.ConstraintLayoutTransfer).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                TransferToAllActivity.this.b0(view);
            }
        });
        findViewById(R.id.ConstraintLayoutTransferVa).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                TransferToAllActivity.this.c0(view);
            }
        });
        findViewById(R.id.ConstraintLayoutSpeedCash).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                TransferToAllActivity.this.d0(view);
            }
        });
        findViewById(R.id.ConstraintLayoutTarikTunai).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                TransferToAllActivity.this.e0(view);
            }
        });
        findViewById(R.id.ConstraintLayoutMintaUang).setOnClickListener(new View.OnClickListener() {
            @Override
            public final void onClick(View view) {
                TransferToAllActivity.this.h0(view);
            }
        });
        TextView textView = (TextView) findViewById(R.id.tvTransferMemberGratis);
        final TextView textView2 = (TextView) findViewById(R.id.tvTransferBankGratis);
        textView.setVisibility(0);
        textView2.setVisibility(4);
        Affinity.isFreeAdminTransfer(this, new BBCallback() {
            @Override
            public final void do_callback(int i, Object obj) {
                TransferToAllActivity.this.i0(textView2, i, (Boolean) obj);
            }
        });
    }

    @Override
    @Subscribe(threadMode = ThreadMode.MAIN)
    public void onMessageEvent(BusMessage busMessage) {
        if (busMessage.getEventType() == 1) {
            this.appSession.store(AppSession.PROPERTY_BALANCE, Var.toString(Double.valueOf(busMessage.getBalance()), "0"));
            View view = this.i;
            if (view != null) {
                ((TextView) view.findViewById(R.id.sc_balance)).setText(Locales.moneyNoFraction(this.appSession.retrieve(AppSession.PROPERTY_BALANCE)));
            }
        }
    }

    @Override
    public void onOptionChoosen(OptionListFragment optionListFragment, int i, ProdukListEntity produkListEntity) {
    }

    public void onPause() {
        super/*androidx.fragment.app.FragmentActivity*/.onPause();
        EventBus.getDefault().unregister(this);
    }

    @Override
    public void onResume() {
        super.onResume();
        View view = this.i;
        if (view != null) {
            ((TextView) view.findViewById(R.id.sc_balance)).setText(Locales.moneyNoFraction(this.appSession.retrieve(AppSession.PROPERTY_BALANCE)));
        }
        findViewById(R.id.ConstraintLayoutEmptyTransaction).setVisibility(8);
        ArrayList<BankAccountEntity> arrayList = this.m;
        if (arrayList != null) {
            if (arrayList.size() == 0) {
                findViewById(R.id.ConstraintLayoutEmptyTransaction).setVisibility(0);
                this.n.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.grey));
                findViewById(R.id.tv_look_all_history).setVisibility(8);
                findViewById(R.id.tv_last_transfer).setVisibility(0);
                return;
            }
            findViewById(R.id.ConstraintLayoutEmptyTransaction).setVisibility(8);
            this.n.setTextColor(ContextCompat.getColor(getApplicationContext(), R.color.colorPrimaryAlt));
            findViewById(R.id.tv_look_all_history).setVisibility(0);
            findViewById(R.id.tv_last_transfer).setVisibility(0);
        }
    }

    @Override
    public void onShowcaseFinished() {
    }

    @Override
    public void onStart() {
        super.onStart();
        if (EventBus.getDefault().isRegistered(this)) {
            return;
        }
        EventBus.getDefault().register(this);
    }

    @Override
    public MPMessage onTransactionDone(boolean z, BaseMessage baseMessage) {
        if (!z) {
            CashOutMessage cashOutMessage = new CashOutMessage(baseMessage);
            if (!cashOutMessage.isOK() && cashOutMessage.isNeedSetPin()) {
                Affinity.dialogSetPin(this);
            }
            return cashOutMessage;
        }
        CashOutMessage cashOutMessage2 = new CashOutMessage(baseMessage);
        if (z) {
            this.l.clear();
        }
        if (cashOutMessage2.isOK()) {
            if (z && z) {
                double d = Var.toDouble(cashOutMessage2.getIncludes().get(MPMessage.IncludeMessage.AMOUNT), 0.0d);
                double d2 = Var.toDouble(cashOutMessage2.getIncludes().get(MPMessage.IncludeMessage.ADMIN), 0.0d);
                String var = Var.toString(cashOutMessage2.getBillerInfo("bankName"), "");
                String var2 = Var.toString(cashOutMessage2.getBillerInfo("bankAccountName"), "");
                String var3 = Var.toString(cashOutMessage2.getBillerInfo("bankAccountNumber"), "");
                Bundle bundle = new Bundle();
                if (cashOutMessage2.getStrukMap() != null && cashOutMessage2.getStrukMap().size() > 0) {
                    bundle.putSerializable(PaymentActivity.KEY_STRUK_MAP, cashOutMessage2.getStrukMap());
                }
                if (!var.isEmpty() && !var2.isEmpty() && !var3.isEmpty()) {
                    bundle.putString(PaymentActivity.KEY_BANK_NAME, var);
                    bundle.putString(PaymentActivity.KEY_BANK_ACC_NAME, var2);
                    bundle.putString(PaymentActivity.KEY_BANK_ACC_NUMBER, var3);
                }
                bundle.putDouble("key:balance", Var.toDouble(cashOutMessage2.getValueFromIncludes("balance"), 0.0d));
                bundle.putDouble(PaymentActivity.KEY_SUBTOTAL, d);
                bundle.putDouble(PaymentActivity.KEY_ADMIN, d2);
                bundle.putString(PaymentActivity.KEY_TRANSACTION_LABEL, "TOTAL TRANSFER");
                bundle.putString(PaymentActivity.KEY_DATE, cashOutMessage2.getTransmission_datetime());
                bundle.putString(PaymentActivity.KEY_CUSTOMER_ID, var3);
                bundle.putString(PaymentActivity.KEY_STATUS, "SUKSES");
                bundle.putString("key:product:name", cashOutMessage2.getValueFromIncludes(MPMessage.IncludeMessage.BILLER_PRODUCT_CODE));
                bundle.putString(PaymentActivity.KEY_IS_PULSA, "0");
                bundle.putString(PaymentActivity.KEY_IS_SCTI, "0");
                resetForm(false);
            }
        } else if (cashOutMessage2.isNeedSetPin()) {
            Affinity.dialogSetPin(this);
        } else if (cashOutMessage2.getResponse_code().equals("02")) {
            setSuksesOrPendingTransaction(false);
            Affinity.confirm(this, getString(R.string.masukin_ulang_pin_anda), cashOutMessage2.getMessageDescription(), new BBCallback() {
                @Override
                public final void do_callback(int i, Object obj) {
                    TransferToAllActivity.this.j0(i, (Boolean) obj);
                }
            });
        }
        return cashOutMessage2;
    }

    @Override
    public void onTransactionPrepare(boolean z) {
    }

    @Override
    public void optionChoosen(OptionListFragment1 optionListFragment1, int i, ProdukListEntity produkListEntity) {
    }

    @Override
    public void optionChoosen1(OptionListFragment2 optionListFragment2, int i, ProdukListEntity produkListEntity) {
    }

    @Override
    public boolean overridePaymentActivity() {
        return true;
    }

    @Override
    public void resetForm(boolean z) {
    }

    public void setClickHistory(BankAccountEntity bankAccountEntity) {
        Bundle bundle = new Bundle();
        bundle.putSerializable("bankAccountEntity", bankAccountEntity);
        if (bankAccountEntity.getBankName().contains("Bank") || bankAccountEntity.getBankName().contains("BANK") || !bankAccountEntity.getBankCode().equals("")) {
            Affinity.launch(this, TransferToBank2Activity.class, bundle);
        } else if (bankAccountEntity.getIdProduk().equals("SCTI")) {
            Affinity.launch(this, TransferInternalActivity.class, TransferInternalActivity.INSTANCE.buildBundleFromHistory(bankAccountEntity.getAccountCode(), true));
        } else {
            bundle.putSerializable("bankHistoryEntities", this.m);
            Affinity.launch(this, Emoney2Activity.class, bundle);
        }
    }
}