From 115efbe1135ba4477054e09a465fd35a82293cc1 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sat, 25 Mar 2017 00:22:37 +0100 Subject: [PATCH] Fix #3481 --- OsmAnd-java/src/net/osmand/search/SearchUICore.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd-java/src/net/osmand/search/SearchUICore.java b/OsmAnd-java/src/net/osmand/search/SearchUICore.java index 12b41294ad..a8e4b5b11e 100644 --- a/OsmAnd-java/src/net/osmand/search/SearchUICore.java +++ b/OsmAnd-java/src/net/osmand/search/SearchUICore.java @@ -198,6 +198,9 @@ public class SearchUICore { String type2 = a2.getType().getKeyName(); String subType1 = a1.getSubType(); String subType2 = a2.getSubType(); + if(a1.getId().longValue() == a2.getId().longValue() && (subType1.equals("building") || subType2.equals("building"))) { + return true; + } if (!type1.equals(type2)) { return false; }