From: Damyan Ivanov Date: Sun, 6 Jan 2019 08:24:34 +0000 (+0000) Subject: MLDB: the locally-stored context in the Application instance X-Git-Tag: v0.3~102 X-Git-Url: https://git.ktnx.net/?p=mobile-ledger.git;a=commitdiff_plain;h=bad1742b6e8817f08488a3638de56b785a0729c6;ds=sidebyside 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 --- 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;