From d200599c6e2f6794c8312f7ca041b5628142733a Mon Sep 17 00:00:00 2001 From: David Aparicio Date: Thu, 14 Dec 2023 12:28:04 +0100 Subject: [PATCH] update: [ANDROAPP-5698] remove duplicates using distinct, remove the last point --- .../org/dhis2/maps/geometry/polygon/PolygonViewModel.kt | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/dhis2_android_maps/src/main/java/org/dhis2/maps/geometry/polygon/PolygonViewModel.kt b/dhis2_android_maps/src/main/java/org/dhis2/maps/geometry/polygon/PolygonViewModel.kt index ef13dfeaf1..ccf04153bb 100644 --- a/dhis2_android_maps/src/main/java/org/dhis2/maps/geometry/polygon/PolygonViewModel.kt +++ b/dhis2_android_maps/src/main/java/org/dhis2/maps/geometry/polygon/PolygonViewModel.kt @@ -45,14 +45,7 @@ class PolygonViewModel : ViewModel() { } return if (list[0].size > 2) { - if (list[0].last() != list[0].first()) { - for (index in 0..