mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-17 18:41:37 +01:00
Change return type of updateDrug
This commit is contained in:
parent
de439ff07b
commit
cdde3f747f
1 changed files with 1 additions and 7 deletions
|
@ -39,10 +39,6 @@ class DBHelper extends SQLiteOpenHelper {
|
|||
private static final String[] COLUMS = {KEY_ID, KEY_CIS,KEY_CIP13, KEY_NAME, KEY_ADMIN, KEY_PRES, KEY_STOCK, KEY_PRISE,
|
||||
KEY_SEUIL_WARN, KEY_SEUIL_ALERT};
|
||||
|
||||
public DBHelper() {
|
||||
super();
|
||||
}
|
||||
|
||||
public static synchronized DBHelper getInstance(Context context) {
|
||||
if (sInstance == null) {
|
||||
sInstance = new DBHelper(context.getApplicationContext());
|
||||
|
@ -263,9 +259,8 @@ class DBHelper extends SQLiteOpenHelper {
|
|||
/**
|
||||
*
|
||||
* @param medicament object to be updated in DB
|
||||
* @return code of update operation (should be 0)
|
||||
*/
|
||||
public int updateDrug(Medicament medicament) {
|
||||
public void updateDrug(Medicament medicament) {
|
||||
// Get reference to writable DB
|
||||
SQLiteDatabase db = this.getWritableDatabase();
|
||||
|
||||
|
@ -287,7 +282,6 @@ class DBHelper extends SQLiteOpenHelper {
|
|||
// Close DB
|
||||
db.close();
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue