src/main/java/de/blau/android/presets/PresetElement.java
/**
     * Check if a PresetElement is applicable for a region
     * 
     * @param region the region
     * @return true if the PresetElement is in use
     */
Check if a PresetElement is applicable for a region

@param region the region
@return true if the PresetElement is in use
Check if a PresetElement is applicable for a region @param region the region @return true if the PresetElement is in use
public boolean appliesIn(@Nullable String region) {
        if (regions != null && !regions.isEmpty() && region != null) {
            for (String r : regions) {
                if (region.equals(r)) {
                    return !excludeRegions;
                }
            }
            return excludeRegions;
        }
        return true;
    }
public boolean appliesIn ( @ Nullable String region ) { if ( regions != null && ! regions . isEmpty ( ) && region != null ) { for ( String r : regions ) { if ( region . equals ( r ) ) { return ! excludeRegions ; } } return excludeRegions ; } return true ; }
Check if a PresetElement is applicable for a region
Check if a PresetElement is applicable for a region