Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2016-07-29 12:21:52 +02:00
commit 297e85b379

View file

@ -247,5 +247,14 @@ public class Amenity extends MapObject {
setAdditionalInfo(OPENING_HOURS, openingHours);
}
@Override
public int compareTo(MapObject o) {
int cmp = super.compareTo(o);
if(cmp == 0 && o instanceof Amenity) {
return ((Amenity) o).getType().getKeyName().compareTo(getType().getKeyName());
}
return cmp;
}
}