mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-09 23:41:08 +01:00
Use the text ressource
This commit is contained in:
parent
dc2327f143
commit
1e44a786a6
1 changed files with 2 additions and 2 deletions
|
@ -349,14 +349,14 @@ public class DrugListActivity extends AppCompatActivity {
|
|||
// setup a dialog window
|
||||
|
||||
alertDialogBuilder.setCancelable(false)
|
||||
.setPositiveButton("OK", (dialog, id) -> {
|
||||
.setPositiveButton(R.string.button_ok, (dialog, id) -> {
|
||||
//String cip13 = editText.getText().toString();
|
||||
String cip13 = "34009" + editText.getText().toString();
|
||||
MedicinesDAO medicineDAO = medicines.getMedicinesDAO();
|
||||
Medicine aMedicine = medicineDAO.getMedicineByCIP13(cip13);
|
||||
askToAddInDB(aMedicine);
|
||||
})
|
||||
.setNegativeButton("Cancel",
|
||||
.setNegativeButton(R.string.button_cancel,
|
||||
(dialog, id) -> dialog.cancel());
|
||||
|
||||
// create an alert dialog
|
||||
|
|
Loading…
Reference in a new issue