Fix duplicate favourites again (issue 2400)

This commit is contained in:
Zahnstocher 2015-03-15 12:46:07 +01:00
parent c6a61da8d9
commit f411cc94c2
2 changed files with 2 additions and 1 deletions

View file

@ -196,7 +196,6 @@ public class FavouritesDbHelper {
} else {
builder.setMessage(uiContext.getString(R.string.fav_point_dublicate_message, name));
}
builder.setPositiveButton(R.string.shared_string_ok, null);
p.setName(name);
return builder;
}
@ -231,6 +230,7 @@ public class FavouritesDbHelper {
++index;
}
builder.trimToSize(); // remove trailing null characters
return builder.toString();
}

View file

@ -221,6 +221,7 @@ public class FavoriteDialogs {
addFavorite(activity, point, helper);
}
});
bld.show();
} else {
addFavorite(activity, point, helper);
}