src/main/java/de/blau/android/presets/Preset.java
/**
     * Recursively add tags from the preset to the index of the new preset
     * 
     * @param group current group
     * @param elements list of PresetElements
     */
Recursively add tags from the preset to the index of the new preset

@param group current group
@param elements list of PresetElements
Recursively add tags from the preset to the index of the new preset @param group current group @param elements list of PresetElements
private void addElementsToIndex(PresetGroup group, List<PresetElement> elements) {
        for (PresetElement e : elements) {
            if (e instanceof PresetGroup) {
                addElementsToIndex(group, ((PresetGroup) e).getElements());
            } else if (e instanceof PresetItem) {
                addToIndices((PresetItem) e);
            }
        }
    }
private void addElementsToIndex ( PresetGroup group , List < PresetElement > elements ) { for ( PresetElement e : elements ) { if ( e instanceof PresetGroup ) { addElementsToIndex ( group , ( ( PresetGroup ) e ) . getElements ( ) ) ; } else if ( e instanceof PresetItem ) { addToIndices ( ( PresetItem ) e ) ; } } }
Recursively add tags from the preset to the index of the new preset
Recursively add tags from the preset to the index of the new preset