* This file is part of MoLe.
* MoLe is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
* This file is part of MoLe.
* MoLe is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
public class CommitAccountsTask
extends AsyncTask<CommitAccountsTaskParams, Void, ArrayList<LedgerAccount>> {
protected ArrayList<LedgerAccount> doInBackground(CommitAccountsTaskParams... params) {
public class CommitAccountsTask
extends AsyncTask<CommitAccountsTaskParams, Void, ArrayList<LedgerAccount>> {
protected ArrayList<LedgerAccount> doInBackground(CommitAccountsTaskParams... params) {
for (int i = 0; i < params[0].accountList.size(); i++ ){
LedgerAccount acc = params[0].accountList.get(i);
for (int i = 0; i < params[0].accountList.size(); i++ ){
LedgerAccount acc = params[0].accountList.get(i);
- Log.d("CAT", String.format("Setting %s to %s", acc.getName(),
+ debug("CAT", String.format("Setting %s to %s", acc.getName(),
acc.isHiddenByStarToBe() ? "hidden" : "starred"));
db.execSQL("UPDATE accounts SET hidden=? WHERE profile=? AND name=?",
new Object[]{acc.isHiddenByStarToBe() ? 1 : 0, profile, acc.getName()
});
acc.isHiddenByStarToBe() ? "hidden" : "starred"));
db.execSQL("UPDATE accounts SET hidden=? WHERE profile=? AND name=?",
new Object[]{acc.isHiddenByStarToBe() ? 1 : 0, profile, acc.getName()
});