fix issue 216

git-svn-id: https://osmand.googlecode.com/svn/trunk@713 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
Victor Shcherb 2010-11-28 10:48:10 +00:00
parent f8ef200333
commit 41106d0cea

View file

@ -115,7 +115,6 @@ public class EditPOIFilterActivity extends ListActivity {
@Override @Override
public boolean onOptionsItemSelected(MenuItem item) { public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == R.id.edit_filter_delete) { if (item.getItemId() == R.id.edit_filter_delete) {
EditPOIFilterActivity.this.finish();
Builder builder = new AlertDialog.Builder(this); Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.edit_filter_delete_dialog_title); builder.setMessage(R.string.edit_filter_delete_dialog_title);
builder.setNegativeButton(R.string.default_buttons_no, null); builder.setNegativeButton(R.string.default_buttons_no, null);
@ -127,6 +126,7 @@ public class EditPOIFilterActivity extends ListActivity {
EditPOIFilterActivity.this, EditPOIFilterActivity.this,
MessageFormat.format(EditPOIFilterActivity.this.getText(R.string.edit_filter_delete_message).toString(), MessageFormat.format(EditPOIFilterActivity.this.getText(R.string.edit_filter_delete_message).toString(),
filter.getName()), Toast.LENGTH_SHORT).show(); filter.getName()), Toast.LENGTH_SHORT).show();
EditPOIFilterActivity.this.finish();
} }
} }