From 5e033677cc10d89de9f53febecbdd149d954cb85 Mon Sep 17 00:00:00 2001 From: sonora Date: Tue, 27 Dec 2011 13:17:11 +0100 Subject: [PATCH] add fav name to delete context action dialog --- OsmAnd/res/values/strings.xml | 2 +- OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml index 12adea7b4b..8548d9d8bc 100644 --- a/OsmAnd/res/values/strings.xml +++ b/OsmAnd/res/values/strings.xml @@ -755,7 +755,7 @@ Edit favorite Delete favorite -Remove favorite point? +Remove favorite point {0}? Favorite point {0} was succesfully deleted. Enter bug text diff --git a/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java b/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java index 669b7b91d1..11c448c827 100644 --- a/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/FavouritesActivity.java @@ -282,7 +282,7 @@ public class FavouritesActivity extends ExpandableListActivity { if (aItem.getItemId() == DELETE_ITEM) { final Resources resources = this.getResources(); Builder builder = new AlertDialog.Builder(this); - builder.setMessage(R.string.favourites_remove_dialog_msg); + builder.setMessage(getString(R.string.favourites_remove_dialog_msg, info.getName())); builder.setNegativeButton(R.string.default_buttons_no, null); builder.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() { @Override