import cleanning

This commit is contained in:
jacques 2020-12-07 11:21:39 +01:00
parent 3fa7d675d0
commit be99c2f3f2

View file

@ -2,7 +2,7 @@ package net.foucry.pilldroid;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import com.google.android.material.snackbar.Snackbar;
import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar; import androidx.appcompat.widget.Toolbar;
@ -13,6 +13,8 @@ import android.widget.EditText;
import android.widget.ImageButton; import android.widget.ImageButton;
import android.widget.TextView; import android.widget.TextView;
import java.util.Date;
import static net.foucry.pilldroid.R.id.detail_toolbar; import static net.foucry.pilldroid.R.id.detail_toolbar;
/** /**
@ -148,7 +150,7 @@ public class MedicamentDetailActivity extends AppCompatActivity {
newMedicament.setPrise(Double.parseDouble(priseValue)); newMedicament.setPrise(Double.parseDouble(priseValue));
newMedicament.setWarnThreshold(Integer.parseInt(warningValue)); newMedicament.setWarnThreshold(Integer.parseInt(warningValue));
newMedicament.setAlertThreshold(Integer.parseInt(alertValue)); newMedicament.setAlertThreshold(Integer.parseInt(alertValue));
newMedicament.setDateLastUpdate(); newMedicament.setDateLastUpdate(UtilDate.dateAtNoon(new Date()).getTime());
newMedicament.setDateEndOfStock(); newMedicament.setDateEndOfStock();
dbHelper.updateDrug(newMedicament); dbHelper.updateDrug(newMedicament);