[Quick search] remove topbar for objects with location

This commit is contained in:
Alexey Kulish 2016-08-17 16:00:03 +03:00
parent 0851f26e0c
commit d1a72e874f

View file

@ -255,7 +255,7 @@ public class QuickSearchDialogFragment extends DialogFragment implements OsmAndC
searchResult.location.getLatitude(), searchResult.location.getLongitude(),
searchResult.preferredZoom, pointDescription, true, searchResult.object);
if (searchResult.object != null && searchResult.object instanceof City) {
if (searchResult.object != null && searchResult.location != null) {
hideToolbar();
} else {
showToolbar();