src/main/java/de/blau/android/util/Util.java
/**
     * Clear all the places where we've cached icons
     * 
     * @param context Android Context
     */
Clear all the places where we've cached icons

@param context Android Context
Clear all the places where we ' ve cached icons @param context Android Context
public static void clearIconCaches(@NonNull Context context) {
        Preset[] presets = App.getCurrentPresets(context);
        for (Preset p : presets) {
            if (p != null) {
                p.clearIcons();
            }
        }
        Logic logic = App.getLogic();
        if (logic != null) {
            de.blau.android.Map map = logic.getMap();
            if (map != null) {
                de.blau.android.layer.data.MapOverlay dataLayer = map.getDataLayer();
                if (dataLayer != null) {
                    dataLayer.clearIconCaches();
                    dataLayer.invalidate();
                }
            }
        }
        TileLayerSource.clearLogos();
    }
public static void clearIconCaches ( @ NonNull Context context ) { Preset [ ] presets = App . getCurrentPresets ( context ) ; for ( Preset p : presets ) { if ( p != null ) { p . clearIcons ( ) ; } } Logic logic = App . getLogic ( ) ; if ( logic != null ) { de . blau . android . Map map = logic . getMap ( ) ; if ( map != null ) { de . blau . android . layer . data . MapOverlay dataLayer = map . getDataLayer ( ) ; if ( dataLayer != null ) { dataLayer . clearIconCaches ( ) ; dataLayer . invalidate ( ) ; } } } TileLayerSource . clearLogos ( ) ; }
Clear all the places where we've cached icons
Clear all the places where we ' ve cached icons