mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-10 07:51:20 +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() {
|
||||
@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);
|
||||
|
|
Loading…
Reference in a new issue