/*
- * 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
if (showingOnlyStarred) sql += " WHERE hidden = 0";
sql += " ORDER BY name";
- try (SQLiteDatabase db = MLDB.getReadableDatabase(context)) {
+ try (SQLiteDatabase db = MLDB.getReadableDatabase()) {
try (Cursor cursor = db
.rawQuery(sql,null))
{
}
}
void commitSelections(Context context) {
- try(SQLiteDatabase db = MLDB.getWritableDatabase(context)) {
+ try (SQLiteDatabase db = MLDB.getWritableDatabase()) {
db.beginTransaction();
try {
for (LedgerAccount acc : accounts) {