mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
fix code style and comments
This commit is contained in:
parent
0b3a4c8a12
commit
7de2982944
1 changed files with 4 additions and 4 deletions
|
@ -317,7 +317,7 @@ class DBHelper extends SQLiteOpenHelper {
|
||||||
// Get reference to writable DB
|
// Get reference to writable DB
|
||||||
SQLiteDatabase db = this.getWritableDatabase();
|
SQLiteDatabase db = this.getWritableDatabase();
|
||||||
|
|
||||||
// Create ContentValues to add columnm/value
|
// Create ContentValues to add column/value
|
||||||
ContentValues values = new ContentValues();
|
ContentValues values = new ContentValues();
|
||||||
values.put(KEY_ID, drug.getId());
|
values.put(KEY_ID, drug.getId());
|
||||||
values.put(KEY_CIS, drug.getCis());
|
values.put(KEY_CIS, drug.getCis());
|
||||||
|
@ -333,9 +333,9 @@ class DBHelper extends SQLiteOpenHelper {
|
||||||
|
|
||||||
String[] selectionArgs = { String.valueOf(drug.getId()) };
|
String[] selectionArgs = { String.valueOf(drug.getId()) };
|
||||||
|
|
||||||
db.update(TABLE_DRUG, // table
|
db.update(TABLE_DRUG, // table
|
||||||
values, // column/value
|
values, // column/value
|
||||||
KEY_ID + " = ?", // selections
|
KEY_ID + " = ?", // selections
|
||||||
selectionArgs);
|
selectionArgs);
|
||||||
|
|
||||||
// Close DB
|
// Close DB
|
||||||
|
|
Loading…
Reference in a new issue