Merge pull request #2956 from njohnston/double_yes_fix

Avoid double "yes" in replace favourite prompt (fixes #2955)
This commit is contained in:
vshcherb 2016-08-16 22:20:51 +02:00 committed by GitHub
commit 7d705e1af2

View file

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