From bad1742b6e8817f08488a3638de56b785a0729c6 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 6 Jan 2019 08:24:34 +0000 Subject: [PATCH] MLDB: the locally-stored context in the Application instance it was before, but now it is declared so and the code analysis doesn't complain anymore --- app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java b/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java index e0dc9f1a..d6fa7774 100644 --- a/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java +++ b/app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java @@ -190,9 +190,9 @@ class MobileLedgerDatabase extends SQLiteOpenHelper implements AutoCloseable { public static final String DB_NAME = "mobile-ledger.db"; public static final int LATEST_REVISION = 11; - private final Context mContext; + private final Application mContext; - public MobileLedgerDatabase(Context context) { + public MobileLedgerDatabase(Application context) { super(context, DB_NAME, null, LATEST_REVISION); Log.d("db", "creating helper instance"); mContext = context; -- 2.39.5