Fix more button in markers topbar with one active marker

This commit is contained in:
Alexander Sytnyk 2018-01-16 18:53:30 +02:00
parent f0529e06e2
commit c14025c444

View file

@ -93,7 +93,8 @@ public class MapMarkersWidgetsFactory {
});
IconsCache iconsCache = map.getMyApplication().getIconsCache();
if (isLandscapeLayout() && helper.getMapMarkers().size() > 1) {
if (isLandscapeLayout() && helper.getMapMarkers().size() > 1
&& !(map.getMyApplication().getSettings().DISPLAYED_MARKERS_WIDGETS_COUNT.get() == 1)) {
moreButton.setVisibility(View.GONE);
} else {
moreButton.setImageDrawable(iconsCache.getIcon(R.drawable.ic_action_markers_list, R.color.marker_top_2nd_line_color));