]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/java/net/ktnx/mobileledger/utils/MLDB.java
migrate a bunch of globals to LiveData
[mobile-ledger.git] / app / src / main / java / net / ktnx / mobileledger / utils / MLDB.java
index a7106961d7ed09a8658b0485fcc68c4e830f2e8d..9089b9e5d9ea9f21508feee9513c947443d64259 100644 (file)
@@ -126,7 +126,8 @@ public final class MLDB {
                                                  final AutoCompleteTextView view,
                                                  final String table, final String field,
                                                  final boolean profileSpecific) {
-        hookAutocompletionAdapter(context, view, table, field, profileSpecific, null, null, Data.profile.get());
+        hookAutocompletionAdapter(context, view, table, field, profileSpecific, null, null,
+                Data.profile.getValue());
     }
     @TargetApi(Build.VERSION_CODES.N)
     public static void hookAutocompletionAdapter(final Context context,
@@ -214,7 +215,7 @@ public final class MLDB {
     }
 }
 
-class MobileLedgerDatabase extends SQLiteOpenHelper implements AutoCloseable {
+class MobileLedgerDatabase extends SQLiteOpenHelper {
     private static final String DB_NAME = "MoLe.db";
     private static final int LATEST_REVISION = 22;
     private static final String CREATE_DB_SQL = "create_db";