Optimizations

This commit is contained in:
jacques 2022-06-10 21:01:04 +02:00
parent e42626fbfa
commit 6b6da51894

View file

@ -484,7 +484,6 @@ public class DrugListActivity extends AppCompatActivity {
Prescription prescription = prescriptionList.get(position); Prescription prescription = prescriptionList.get(position);
if (direction == ItemTouchHelper.LEFT) { if (direction == ItemTouchHelper.LEFT) {
prescriptionList.remove(position); prescriptionList.remove(position);
mAdapter.notifyItemRemoved(position); mAdapter.notifyItemRemoved(position);