From: Damyan Ivanov Date: Fri, 21 Dec 2018 17:00:13 +0000 (+0000) Subject: save a method call X-Git-Tag: v0.3~194 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=fbbe23b2f69c6a845323808d540ac08a032e788f;p=mobile-ledger.git save a method call --- diff --git a/app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java b/app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java index c14d7890..1ec01132 100644 --- a/app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java @@ -50,7 +50,7 @@ class TransactionListAdapter LedgerTransaction tr = transactions.get(position); Context ctx = holder.row.getContext(); - try (SQLiteDatabase db = MLDB.getReadableDatabase(ctx.getApplicationContext())) { + try (SQLiteDatabase db = MLDB.getReadableDatabase(ctx)) { tr.loadData(db); holder.tvDescription