From 7de29829444e7130102bf87c25cb4ac6c9a32086 Mon Sep 17 00:00:00 2001 From: jacques Date: Sun, 6 Mar 2022 10:48:51 +0100 Subject: [PATCH] fix code style and comments --- app/src/main/java/net/foucry/pilldroid/DBHelper.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DBHelper.java b/app/src/main/java/net/foucry/pilldroid/DBHelper.java index 73a003d..0fb0784 100644 --- a/app/src/main/java/net/foucry/pilldroid/DBHelper.java +++ b/app/src/main/java/net/foucry/pilldroid/DBHelper.java @@ -317,7 +317,7 @@ class DBHelper extends SQLiteOpenHelper { // Get reference to writable DB SQLiteDatabase db = this.getWritableDatabase(); - // Create ContentValues to add columnm/value + // Create ContentValues to add column/value ContentValues values = new ContentValues(); values.put(KEY_ID, drug.getId()); values.put(KEY_CIS, drug.getCis()); @@ -333,9 +333,9 @@ class DBHelper extends SQLiteOpenHelper { String[] selectionArgs = { String.valueOf(drug.getId()) }; - db.update(TABLE_DRUG, // table - values, // column/value - KEY_ID + " = ?", // selections + db.update(TABLE_DRUG, // table + values, // column/value + KEY_ID + " = ?", // selections selectionArgs); // Close DB