src/main/java/de/blau/android/dialogs/Layers.java
/**
     * Add a StyleableLayer from a file
     * 
     * @param activity the calling Activity
     * @param prefs current Preferences
     * @param map current Map
     * @param type the layer type
     */
Add a StyleableLayer from a file

@param activity the calling Activity
@param prefs current Preferences
@param map current Map
@param type the layer type
Add a StyleableLayer from a file @param activity the calling Activity @param prefs current Preferences @param map current Map @param type the layer type
private void addStyleableLayerFromFile(final FragmentActivity activity, final Preferences prefs, final Map map, @NonNull final LayerType type) {
        Log.d(DEBUG_TAG, "addGpxLayerFromFile");
        SelectFile.read(activity, R.string.config_osmPreferredDir_key, new ReadFile() {
            private static final long serialVersionUID = 1L;
            @Override
            public boolean read(Uri fileUri) {
                addStyleableLayerFromUri(activity, prefs, map, type, fileUri);
                return true;
            }
        });
    }
private void addStyleableLayerFromFile ( final FragmentActivity activity , final Preferences prefs , final Map map , @ NonNull final LayerType type ) { Log . d ( DEBUG_TAG , "addGpxLayerFromFile" ) ; SelectFile . read ( activity , R . string . config_osmPreferredDir_key , new ReadFile ( ) { private static final long serialVersionUID = 1L ; @ Override public boolean read ( Uri fileUri ) { addStyleableLayerFromUri ( activity , prefs , map , type , fileUri ) ; return true ; } } ) ; }
Add a StyleableLayer from a file
Add a StyleableLayer from a file