if (profile == null) return "Profile not configured";
String profile_uuid = profile.getUuid();
- Data.backgroundTaskCount.incrementAndGet();
+ Data.backgroundTaskStarted();
try {
ArrayList<TransactionListItem> newList = new ArrayList<>();
}
Log.d("UTT", sql);
- SQLiteDatabase db = MLDB.getReadableDatabase();
+ SQLiteDatabase db = MLDB.getDatabase();
String lastDateString = Globals.formatLedgerDate(new Date());
Date lastDate = Globals.parseLedgerDate(lastDateString);
boolean odd = true;
lastDateString = dateString;
odd = !odd;
}
- Data.transactions.set(newList);
+ Data.transactions.setList(newList);
Log.d("UTT", "transaction list value updated");
}
return String.format("Error parsing stored date '%s'", e.getMessage());
}
finally {
- Data.backgroundTaskCount.decrementAndGet();
+ Data.backgroundTaskFinished();
}
}
}