add check for ref in title

This commit is contained in:
Chumva 2018-04-16 12:41:47 +03:00
parent c128a2e752
commit 8676032a00

View file

@ -143,7 +143,7 @@ public class AmenityMenuController extends MenuController {
Map<String, String> additionalInfo = amenity.getAdditionalInfo();
if (additionalInfo != null) {
String ref = additionalInfo.get("ref");
if (!TextUtils.isEmpty(ref)) {
if (!TextUtils.isEmpty(ref) && !ref.equals(name)) {
return name + " (" + ref + ")";
}
}