/*
- * Copyright © 2018 Damyan Ivanov.
+ * Copyright © 2019 Damyan Ivanov.
* This file is part of Mobile-Ledger.
* Mobile-Ledger is free software: you can distribute it and/or modify it
* under the term of the GNU General Public License as published by
}
}
void commitSelections(Context context) {
- try(SQLiteDatabase db = MLDB.getWritableDatabase(context)) {
+ try (SQLiteDatabase db = MLDB.getWritableDatabase()) {
db.beginTransaction();
try {
for (LedgerAccount acc : accounts) {