diff --git a/app/src/main/java/com/fieldbook/tracker/activities/CollectActivity.java b/app/src/main/java/com/fieldbook/tracker/activities/CollectActivity.java index c8a99b3b2..b411a760f 100644 --- a/app/src/main/java/com/fieldbook/tracker/activities/CollectActivity.java +++ b/app/src/main/java/com/fieldbook/tracker/activities/CollectActivity.java @@ -731,6 +731,18 @@ private void initToolbars() { triggerTts(deleteTts); }); + deleteValue.setOnLongClickListener(v -> { + + ObservationModel[] models = database.getRepeatedValues(getStudyId(), getObservationUnit(), getTraitDbId()); + + if (models.length > 0) { + + showConfirmMultiMeasureDeleteDialog(List.of(models)); + + } + + return true; + }); } /**