fix error in iterator

This commit is contained in:
jacques 2022-06-23 13:32:37 +02:00
parent 80daeb0923
commit 5f4a04fe85

View file

@ -292,7 +292,7 @@ public class DrugListActivity extends AppCompatActivity {
if (currentPrescription.getTake() == 0) { if (currentPrescription.getTake() == 0) {
prescriptionList.remove(currentPrescription); prescriptionList.remove(currentPrescription);
prescriptionList.add(prescriptionList.size(), currentPrescription); prescriptionList.add(prescriptionList.size()-1, currentPrescription);
} }
} }