From 9c35f7944b990a55d50e64ace2ef945a27aa76e8 Mon Sep 17 00:00:00 2001 From: sonora Date: Sun, 8 Mar 2015 23:09:13 +0100 Subject: [PATCH] shared_string_add_to_favorites (2) --- OsmAnd/res/values/strings.xml | 1 - OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java | 4 ++-- .../src/net/osmand/plus/sherpafy/SherpafyCustomization.java | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 9433fff84d..a4c10015af 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -2039,7 +2039,6 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A Building Intersecting street Location - Add to favorites Update map Open OSM bug Create POI diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java index 7bb036c469..b03e21e0c8 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityActions.java @@ -309,7 +309,7 @@ public class MapActivityActions implements DialogProvider { R.drawable.ic_action_search_light).reg(); adapter.item(R.string.context_menu_item_share_location).icons( R.drawable.ic_action_gshare_dark, R.drawable.ic_action_gshare_light).reg(); - adapter.item(R.string.context_menu_item_add_favorite).icons( + adapter.item(R.string.shared_string_add_to_favorites).icons( R.drawable.ic_action_fav_dark, R.drawable.ic_action_fav_light ).reg(); @@ -353,7 +353,7 @@ public class MapActivityActions implements DialogProvider { } else if (standardId == R.string.context_menu_item_share_location) { enhance(dialogBundle,latitude,longitude,mapActivity.getMapView().getZoom()); new ShareLocation(mapActivity).run(); - } else if (standardId == R.string.context_menu_item_add_favorite) { + } else if (standardId == R.string.shared_string_add_to_favorites) { addFavouritePoint(latitude, longitude); } } diff --git a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyCustomization.java b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyCustomization.java index 3ec213a4d6..6e2ca75ffb 100644 --- a/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyCustomization.java +++ b/OsmAnd/src/net/osmand/plus/sherpafy/SherpafyCustomization.java @@ -482,7 +482,7 @@ public class SherpafyCustomization extends OsmAndAppCustomization { public void prepareLocationMenu(final MapActivity mapActivity, ContextMenuAdapter adapter) { filter(adapter, R.string.context_menu_item_directions_to, R.string.context_menu_item_destination_point, R.string.context_menu_item_search, - R.string.context_menu_item_share_location/*, R.string.context_menu_item_add_favorite*/); + R.string.context_menu_item_share_location/*, R.string.shared_string_add_to_favorites*/); MapActivityLayers layers = mapActivity.getMapLayers(); if(layers.getContextMenuLayer().getFirstSelectedObject() instanceof StageFavorite) { final StageFavorite sf = ((StageFavorite)layers.getContextMenuLayer().getFirstSelectedObject());