use of net.osmand.plus.ApplicationMode in project Osmand by osmandapp.
the class MapWidgetRegistry method isVisible.
public boolean isVisible(String key) {
ApplicationMode mode = settings.APPLICATION_MODE.get();
Set<String> elements = visibleElementsFromSettings.get(mode);
return elements != null && (elements.contains(key) || elements.contains(COLLAPSED_PREFIX + key));
}
Aggregations