]> git.ktnx.net Git - mobile-ledger.git/commitdiff
MLDB: the locally-stored context in the Application instance
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 6 Jan 2019 08:24:34 +0000 (08:24 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 6 Jan 2019 08:24:34 +0000 (08:24 +0000)
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

index e0dc9f1ae771f738f02407206e333c3f433576ce..d6fa7774f7e3bdef5fb4a51f39b26bc51e45d832 100644 (file)
@@ -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;