mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
import cleanning
This commit is contained in:
parent
3fa7d675d0
commit
be99c2f3f2
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue