// ok nasty hack here. Currently account have no idea which direction money flows.
// so for now - hardcoded for backwards compatiblility
private void updateSingleAccount(double amount, String account_name) {
        // ok nasty hack here. Currently account have no idea which direction money flows.
        // so for now - hardcoded for backwards compatiblility
        if (account_name.equals("bankomat")){
            status_disp.transfer_resources("karta konto 1", "gotowka", (float) amount); // TODO: remove hardcoded account names...crashes if names dont match
        }
        else {
            status_disp.reduce_wealth(account_name, (float) amount);
            Log.e(TAG, account_name + " " + amount);
        }
    }
private void updateSingleAccount(double amount, String account_name) {
// ok nasty hack here. Currently account have no idea which direction money flows.
// so for now - hardcoded for backwards compatiblility
if (account_name.equals("bankomat")){
status_disp.transfer_resources("karta konto 1", "gotowka", (float) amount); // TODO: remove hardcoded account names...crashes if names dont match
private void updateSingleAccount(double amount, String account_name) {
// ok nasty hack here. Currently account have no idea which direction money flows.
// so for now - hardcoded for backwards compatiblility
if (account_name.equals("bankomat")){
status_disp.transfer_resources("karta konto 1", "gotowka", (float) amount); // TODO: remove hardcoded account names...crashes if names dont match
}
else {
status_disp.reduce_wealth(account_name, (float) amount);
Log.e(TAG, account_name + " " + amount);
}
}
private void updateSingleAccount(double amount, String account_name) {
// ok nasty hack here. Currently account have no idea which direction money flows.
// so for now - hardcoded for backwards compatiblility
if (account_name.equals("bankomat")){
status_disp.transfer_resources("karta konto 1", "gotowka", (float) amount); // TODO: remove hardcoded account names...crashes if names dont match
}
else {
status_disp.reduce_wealth(account_name, (float) amount);
Log.e(TAG, account_name + " " + amount);
}
}