From fbbe23b2f69c6a845323808d540ac08a032e788f Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Fri, 21 Dec 2018 17:00:13 +0000 Subject: [PATCH] save a method call --- .../main/java/net/ktnx/mobileledger/TransactionListAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5