Fixed new element bug

This commit is contained in:
Daniele
2021-10-05 07:26:16 +02:00
parent 308474246b
commit 065ef2bea6
4 changed files with 4 additions and 3 deletions

View File

@ -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);