Fix lookupAddress when personal point has changed position. Target points name fix.

This commit is contained in:
Dima-1 2020-01-02 14:28:30 +02:00
parent 9055779e5a
commit e5ee6bde78
2 changed files with 3 additions and 2 deletions

View file

@ -43,7 +43,7 @@ public class HomeWorkCard extends BaseCard {
AddPointBottomSheetDialog.showInstance(mapActivity, PointType.HOME);
} else {
targetPointsHelper.navigateToPoint(new LatLon(homePoint.getLatitude(), homePoint.getLongitude()),
true, -1, homePoint.getPointDescription());
true, -1, homePoint.getPointDescription(mapActivity));
}
}
});
@ -63,7 +63,7 @@ public class HomeWorkCard extends BaseCard {
AddPointBottomSheetDialog.showInstance(mapActivity, PointType.WORK);
} else {
targetPointsHelper.navigateToPoint(new LatLon(workPoint.getLatitude(), workPoint.getLongitude()),
true, -1, workPoint.getPointDescription());
true, -1, workPoint.getPointDescription(mapActivity));
}
}
});

View file

@ -291,6 +291,7 @@ public class FavouritesLayer extends OsmandMapLayer implements ContextMenuLayer.
boolean result = false;
if (o instanceof FavouritePoint) {
favorites.editFavourite((FavouritePoint) o, position.getLatitude(), position.getLongitude());
favorites.lookupAddressAllPersonalPoints();
result = true;
}
if (callback != null) {