Avoid double "yes" in replace favourite prompt (fixes #2955)

This commit is contained in:
njohnston 2016-08-16 17:22:15 +00:00
parent 7e3f93b04b
commit ed2f085734

View file

@ -72,7 +72,7 @@ public class FavoriteDialogs {
builder.setTitle(R.string.update_existing);
final FavouritePoint fp = favouritesAdapter.getItem(position);
builder.setMessage(activity.getString(R.string.replace_favorite_confirmation, fp.getName()));
builder.setNegativeButton(R.string.shared_string_yes, null);
builder.setNegativeButton(R.string.shared_string_no, null);
builder.setPositiveButton(R.string.shared_string_yes, new OnClickListener() {
@Override