From 5f4a04fe8551a706ce9a042f2f8f147bc0329232 Mon Sep 17 00:00:00 2001 From: jacques Date: Thu, 23 Jun 2022 13:32:37 +0200 Subject: [PATCH] fix error in iterator --- app/src/main/java/net/foucry/pilldroid/DrugListActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java index 159ae73..f711576 100644 --- a/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java +++ b/app/src/main/java/net/foucry/pilldroid/DrugListActivity.java @@ -292,7 +292,7 @@ public class DrugListActivity extends AppCompatActivity { if (currentPrescription.getTake() == 0) { prescriptionList.remove(currentPrescription); - prescriptionList.add(prescriptionList.size(), currentPrescription); + prescriptionList.add(prescriptionList.size()-1, currentPrescription); } }