src/main/java/de/blau/android/presets/Preset.java
/**
     * Remove a PresetItem as far as possible
     * 
     * @param item the PresetItem
     */
Remove a PresetItem as far as possible

@param item the PresetItem
Remove a PresetItem as far as possible @param item the PresetItem
public void deleteItem(@NonNull PresetItem item) {
        for (String key : searchIndex.getKeys()) {
            searchIndex.removeItem(key, item);
        }
        for (String key : translatedSearchIndex.getKeys()) {
            translatedSearchIndex.removeItem(key, item);
        }
        for (String key : tagItems.getKeys()) {
            tagItems.removeItem(key, item);
        }
        for (String key : objectItems.getKeys()) {
            objectItems.removeItem(key, item);
        }
        removeRecentlyUsed(item);
        item.getParent().removeElement(item);
        item.setParent(null);
    }
public void deleteItem ( @ NonNull PresetItem item ) { for ( String key : searchIndex . getKeys ( ) ) { searchIndex . removeItem ( key , item ) ; } for ( String key : translatedSearchIndex . getKeys ( ) ) { translatedSearchIndex . removeItem ( key , item ) ; } for ( String key : tagItems . getKeys ( ) ) { tagItems . removeItem ( key , item ) ; } for ( String key : objectItems . getKeys ( ) ) { objectItems . removeItem ( key , item ) ; } removeRecentlyUsed ( item ) ; item . getParent ( ) . removeElement ( item ) ; item . setParent ( null ) ; }
Remove a PresetItem as far as possible
Remove a PresetItem as far as possible