src/main/java/de/blau/android/easyedit/ExtendSelectionActionModeCallback.java
/**
     * Check if the current selection are cloased ways
     * 
     * @param selection the current selection
     * @return true if they are all cloased ways
     */
Check if the current selection are cloased ways

@param selection the current selection
@return true if they are all cloased ways
Check if the current selection are cloased ways @param selection the current selection @return true if they are all cloased ways
private boolean canMergePolygons(@NonNull List<OsmElement> selection) {
        for (OsmElement e : selection) {
            if (!(Way.NAME.equals(e.getName()) && ((Way) e).isClosed())) {
                return false;
            }
        }
        return true;
    }
private boolean canMergePolygons ( @ NonNull List < OsmElement > selection ) { for ( OsmElement e : selection ) { if ( ! ( Way . NAME . equals ( e . getName ( ) ) && ( ( Way ) e ) . isClosed ( ) ) ) { return false ; } } return true ; }
Check if the current selection are cloased ways
Check if the current selection are cloased ways