src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Store the currently used imagery
     * 
     * @param map the current Map instance
     */
Store the currently used imagery

@param map the current Map instance
Store the currently used imagery @param map the current Map instance
public void recordImagery(@Nullable de.blau.android.Map map) {
        if (!imageryRecorded) { 
            try {
                if (map != null) { 
                    List<String> currentImagery = map.getImageryNames();
                    for (String i : currentImagery) {
                        if (!imagery.contains(i) && !"None".equalsIgnoreCase(i)) {
                            imagery.add(i);
                        }
                    }
                    imageryRecorded = true;
                }
            } catch (Exception | Error ignored) { 
            }
        }
    }
public void recordImagery ( @ Nullable de . blau . android . Map map ) { if ( ! imageryRecorded ) { try { if ( map != null ) { List < String > currentImagery = map . getImageryNames ( ) ; for ( String i : currentImagery ) { if ( ! imagery . contains ( i ) && ! "None" . equalsIgnoreCase ( i ) ) { imagery . add ( i ) ; } } imageryRecorded = true ; } } catch ( Exception | Error ignored ) { } } }
Store the currently used imagery
Store the currently used imagery
// flag is reset when we change imagery // currently we only modify data when the map exists // NOSONAR never fail on anything here // IGNORE