public class CommitAccountsTask
extends AsyncTask<CommitAccountsTaskParams, Void, ArrayList<LedgerAccount>> {
protected ArrayList<LedgerAccount> doInBackground(CommitAccountsTaskParams... params) {
- Data.backgroundTaskCount.incrementAndGet();
+ Data.backgroundTaskStarted();
ArrayList<LedgerAccount> newList = new ArrayList<>();
String profile = Data.profile.get().getUuid();
try {
}
}
finally {
- Data.backgroundTaskCount.decrementAndGet();
+ Data.backgroundTaskFinished();
}
return newList;