import java.net.URLDecoder;
import java.util.ArrayList;
import java.util.Date;
-import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
Progress progress = new Progress();
int maxTransactionId = Progress.INDETERMINATE;
success = false;
- List<LedgerAccount> accountList = new ArrayList<>();
+ ArrayList<LedgerAccount> accountList = new ArrayList<>();
LedgerAccount lastAccount = null;
Data.backgroundTaskCount.incrementAndGet();
try {
String.format("Unknown parser updating %s", state.name()));
}
}
- if (!isCancelled()) {
- db.execSQL("DELETE FROM transactions WHERE keep = 0");
- db.setTransactionSuccessful();
- }
+
+ throwIfCancelled();
+
+ db.execSQL("DELETE FROM transactions WHERE keep = 0");
+ db.setTransactionSuccessful();
}
finally {
db.endTransaction();
if (success && !isCancelled()) {
Log.d("db", "Updating transaction value stamp");
MLDB.set_option_value(MLDB.OPT_TRANSACTION_LIST_STAMP, new Date().getTime());
- ((TransactionListViewModel)ctx.currentFragment.model).scheduleTransactionListReload(ctx);
+ TransactionListViewModel.scheduleTransactionListReload(ctx);
}
}
catch (MalformedURLException e) {