Show markers/favorites on map after adding marker/favorite

This commit is contained in:
Alex Sytnyk 2018-07-24 13:03:58 +03:00
parent 7232bc23ac
commit 8ee0e078d0
2 changed files with 2 additions and 0 deletions

View file

@ -187,6 +187,7 @@ public class FavouritesDbHelper {
if (p.getName().equals("") && flatGroups.containsKey(p.getCategory())) { if (p.getName().equals("") && flatGroups.containsKey(p.getCategory())) {
return true; return true;
} }
context.getSettings().SHOW_FAVORITES.set(true);
FavoriteGroup group = getOrCreateGroup(p, 0); FavoriteGroup group = getOrCreateGroup(p, 0);
if (!p.getName().equals("")) { if (!p.getName().equals("")) {

View file

@ -858,6 +858,7 @@ public class MapMarkersHelper {
@Nullable List<WptPt> wptPts, @Nullable List<WptPt> wptPts,
@Nullable List<String> mapObjNames) { @Nullable List<String> mapObjNames) {
if (points.size() > 0) { if (points.size() > 0) {
settings.SHOW_MAP_MARKERS.set(true);
int colorIndex = -1; int colorIndex = -1;
List<MapMarker> addedMarkers = new ArrayList<>(); List<MapMarker> addedMarkers = new ArrayList<>();
for (int i = 0; i < points.size(); i++) { for (int i = 0; i < points.size(); i++) {