diff --git a/.idea/compiler.xml b/.idea/compiler.xml index fb7f4a8..61a9130 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 136da20..30d4ca9 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -20,5 +20,5 @@ - + \ No newline at end of file diff --git a/app/src/main/java/it/danieleverducci/nextcloudmaps/repository/GeofavoriteRepository.java b/app/src/main/java/it/danieleverducci/nextcloudmaps/repository/GeofavoriteRepository.java index 9dee4ab..877e633 100644 --- a/app/src/main/java/it/danieleverducci/nextcloudmaps/repository/GeofavoriteRepository.java +++ b/app/src/main/java/it/danieleverducci/nextcloudmaps/repository/GeofavoriteRepository.java @@ -107,7 +107,7 @@ public class GeofavoriteRepository { if (geofav.getId() != 0) { geofavs.remove(geofav); } - geofavs.add(geofav); + geofavs.add(response.body()); mGeofavorites.postValue(geofavs); mIsUpdating.postValue(false); mOnFinished.postValue(true); diff --git a/fastlane/metadata/android/en-US/changelogs/5.txt b/fastlane/metadata/android/en-US/changelogs/5.txt new file mode 100644 index 0000000..d064ce2 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/5.txt @@ -0,0 +1 @@ +Fixed bug when opening newly-created element