address display issue fixed

This commit is contained in:
simon 2020-08-18 11:50:44 +03:00
parent 39b97a110e
commit c757ef3a0b

View file

@ -39,7 +39,7 @@ public class FavoritePointEditor extends PointEditor {
}
favorite = new FavouritePoint(latLon.getLatitude(), latLon.getLongitude(), title, lastCategory);
favorite.setDescription("");
favorite.setAddress(address);
favorite.setAddress(address.isEmpty() ? title : address);
favorite.setOriginObjectName(originObjectName);
FavoritePointEditorFragmentNew.showInstance(mapActivity);
}