From 26349ef6444c331357475e5e9d52cf65e19aeca3 Mon Sep 17 00:00:00 2001 From: jacques Date: Sat, 9 Jan 2021 11:18:09 +0100 Subject: [PATCH] Fix typo change lastDateUpdate calculation --- .../java/net/foucry/pilldroid/MedicamentDetailActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/foucry/pilldroid/MedicamentDetailActivity.java b/app/src/main/java/net/foucry/pilldroid/MedicamentDetailActivity.java index 13693d7..2ee19df 100644 --- a/app/src/main/java/net/foucry/pilldroid/MedicamentDetailActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/MedicamentDetailActivity.java @@ -54,7 +54,7 @@ public class MedicamentDetailActivity extends AppCompatActivity { fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { - Log.d(TAG, "Click on save icone"); + Log.d(TAG, "Click on save icon"); getMedicamentChanges(); setResult(1); @@ -150,7 +150,8 @@ public class MedicamentDetailActivity extends AppCompatActivity { newMedicament.setPrise(Double.parseDouble(priseValue)); newMedicament.setWarnThreshold(Integer.parseInt(warningValue)); 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(); dbHelper.updateDrug(newMedicament);