From 0e8f9e2dfa1f300c80bdfda076df1d92c26473c7 Mon Sep 17 00:00:00 2001 From: "Daniele Verducci (Slimpenguin)" Date: Fri, 23 Feb 2024 07:18:10 +0100 Subject: [PATCH] Fixed map not redrawn after elements added --- .../fragments/GeofavoriteMapFragment.java | 1 + app/src/main/res/layout/fragment_geofavorite_map.xml | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/it/danieleverducci/nextcloudmaps/fragments/GeofavoriteMapFragment.java b/app/src/main/java/it/danieleverducci/nextcloudmaps/fragments/GeofavoriteMapFragment.java index 94faeb0..730255a 100644 --- a/app/src/main/java/it/danieleverducci/nextcloudmaps/fragments/GeofavoriteMapFragment.java +++ b/app/src/main/java/it/danieleverducci/nextcloudmaps/fragments/GeofavoriteMapFragment.java @@ -94,6 +94,7 @@ public class GeofavoriteMapFragment extends GeofavoritesFragment implements Main public void onChanged(List geofavorites) { for(Geofavorite gf : geofavorites) addMarker(gf); + map.invalidate(); } }); diff --git a/app/src/main/res/layout/fragment_geofavorite_map.xml b/app/src/main/res/layout/fragment_geofavorite_map.xml index efc438b..1e29629 100644 --- a/app/src/main/res/layout/fragment_geofavorite_map.xml +++ b/app/src/main/res/layout/fragment_geofavorite_map.xml @@ -8,6 +8,11 @@ android:layout_width="match_parent" android:layout_height="match_parent"> + + - -