add fav name to delete context action dialog

This commit is contained in:
sonora 2011-12-27 13:17:11 +01:00
parent 00474a9cf9
commit 5e033677cc
2 changed files with 2 additions and 2 deletions

View file

@ -755,7 +755,7 @@
<string name="favourites_context_menu_edit">Edit favorite</string> <string name="favourites_context_menu_edit">Edit favorite</string>
<string name="favourites_context_menu_delete">Delete favorite</string> <string name="favourites_context_menu_delete">Delete favorite</string>
<string name="favourites_remove_dialog_msg">Remove favorite point?</string> <string name="favourites_remove_dialog_msg">Remove favorite point {0}?</string>
<string name="favourites_remove_dialog_success">Favorite point {0} was succesfully deleted.</string> <string name="favourites_remove_dialog_success">Favorite point {0} was succesfully deleted.</string>
<string name="osb_add_dialog_title">Enter bug text</string> <string name="osb_add_dialog_title">Enter bug text</string>

View file

@ -282,7 +282,7 @@ public class FavouritesActivity extends ExpandableListActivity {
if (aItem.getItemId() == DELETE_ITEM) { if (aItem.getItemId() == DELETE_ITEM) {
final Resources resources = this.getResources(); final Resources resources = this.getResources();
Builder builder = new AlertDialog.Builder(this); 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.setNegativeButton(R.string.default_buttons_no, null);
builder.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() { builder.setPositiveButton(R.string.default_buttons_yes, new DialogInterface.OnClickListener() {
@Override @Override