try to resolve non-static/static error

This commit is contained in:
sonora 2011-12-27 14:28:11 +01:00
parent 3549448ac5
commit 11a2c04876

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(MessageFormat.format(getString(R.string.favourites_remove_dialog_msg, point.getName()))); builder.setMessage(MessageFormat.format(resources.getString(R.string.favourites_remove_dialog_msg, point.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