Change return type of updateDrug

This commit is contained in:
jacques 2020-04-28 22:34:47 +02:00
parent de439ff07b
commit cdde3f747f

View file

@ -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;
}
/**