mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Fix typo
change lastDateUpdate calculation
This commit is contained in:
parent
5088d912de
commit
26349ef644
1 changed files with 3 additions and 2 deletions
|
@ -54,7 +54,7 @@ public class MedicamentDetailActivity extends AppCompatActivity {
|
||||||
fab.setOnClickListener(new View.OnClickListener() {
|
fab.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
Log.d(TAG, "Click on save icone");
|
Log.d(TAG, "Click on save icon");
|
||||||
|
|
||||||
getMedicamentChanges();
|
getMedicamentChanges();
|
||||||
setResult(1);
|
setResult(1);
|
||||||
|
@ -150,7 +150,8 @@ 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(UtilDate.dateAtNoon(new Date()).getTime());
|
// newMedicament.setDateLastUpdate(UtilDate.dateAtNoon(new Date()).getTime());
|
||||||
|
newMedicament.setDateLastUpdate(new Date().getTime());
|
||||||
newMedicament.setDateEndOfStock();
|
newMedicament.setDateEndOfStock();
|
||||||
|
|
||||||
dbHelper.updateDrug(newMedicament);
|
dbHelper.updateDrug(newMedicament);
|
||||||
|
|
Loading…
Reference in a new issue