Favorites: Allow to share the same name if favorites belong to different groups
This commit is contained in:
parent
7670733f38
commit
50ff060486
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ public class FavouritesDbHelper {
|
|||
while (fl) {
|
||||
fl = false;
|
||||
for (FavouritePoint fp : fdb.getFavouritePoints()) {
|
||||
if (fp.getName().equals(name) && p.getLatitude() != fp.getLatitude() && p.getLongitude() != fp.getLongitude()) {
|
||||
if (fp.getName().equals(name) && p.getLatitude() != fp.getLatitude() && p.getLongitude() != fp.getLongitude() && fp.getCategory().equals(p.getCategory())) {
|
||||
number++;
|
||||
index = " (" + number + ")";
|
||||
name = p.getName() + index;
|
||||
|
|
Loading…
Reference in a new issue