src/main/java/de/blau/android/presets/Preset.java
/**
     * Remove an entry for a PresetItem from all tag to PresetItem indices
     * 
     * This is only useful for testing
     * 
     * @param ctx an Android Context
     * @param tag the tag for which we want to remove the entry
     */
Remove an entry for a PresetItem from all tag to PresetItem indices

This is only useful for testing

@param ctx an Android Context
@param tag the tag for which we want to remove the entry
Remove an entry for a PresetItem from all tag to PresetItem indices This is only useful for testing @param ctx an Android Context @param tag the tag for which we want to remove the entry
static void removeItem(@NonNull Context ctx, @NonNull String tag) {
        for (Preset preset : App.getCurrentPresets(ctx)) {
            if (preset != null) {
                Set<PresetItem> items = preset.tagItems.get(tag);
                for (PresetItem item : items) {
                    preset.deleteItem(item);
                }
            }
        }
    }
static void removeItem ( @ NonNull Context ctx , @ NonNull String tag ) { for ( Preset preset : App . getCurrentPresets ( ctx ) ) { if ( preset != null ) { Set < PresetItem > items = preset . tagItems . get ( tag ) ; for ( PresetItem item : items ) { preset . deleteItem ( item ) ; } } } }
Remove an entry for a PresetItem from all tag to PresetItem indices
Remove an entry for a PresetItem from all tag to PresetItem indices