]> git.ktnx.net Git - mobile-ledger.git/commitdiff
save a method call
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 21 Dec 2018 17:00:13 +0000 (17:00 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 21 Dec 2018 17:00:13 +0000 (17:00 +0000)
app/src/main/java/net/ktnx/mobileledger/TransactionListAdapter.java

index c14d7890b355a66f7e76bd63eb85bd1e8293d490..1ec01132a1505a4000f22f0d03424e308ad366ed 100644 (file)
@@ -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