src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Check the future relation member count against the maximum supported by the current API
     * 
     * @param r the Relation we inten to modify
     * @param increment how much the member count will increase
     * @throws OsmIllegalOperationException if the count is larger than the maximum supported
     */
Check the future relation member count against the maximum supported by the current API

@param r the Relation we inten to modify
@param increment how much the member count will increase
@throws OsmIllegalOperationException if the count is larger than the maximum supported
Check the future relation member count against the maximum supported by the current API @param r the Relation we inten to modify @param increment how much the member count will increase @throws OsmIllegalOperationException if the count is larger than the maximum supported
private void validateRelationMemberCount(@NonNull Relation r, final int increment) {
        Logic logic = App.getLogic();
        if (logic != null) {
            Preferences prefs = logic.getPrefs();
            if (prefs != null && (r.getMemberCount() + increment) > prefs.getServer().getCachedCapabilities().getMaxRelationMembers()) {
                throw new OsmIllegalOperationException(PreconditionIssue.RELATION_MEMBER_COUNT, r,
                        App.resources().getString(R.string.exception_too_many_members, r.getDescription()));
            }
        }
    }
private void validateRelationMemberCount ( @ NonNull Relation r , final int increment ) { Logic logic = App . getLogic ( ) ; if ( logic != null ) { Preferences prefs = logic . getPrefs ( ) ; if ( prefs != null && ( r . getMemberCount ( ) + increment ) > prefs . getServer ( ) . getCachedCapabilities ( ) . getMaxRelationMembers ( ) ) { throw new OsmIllegalOperationException ( PreconditionIssue . RELATION_MEMBER_COUNT , r , App . resources ( ) . getString ( R . string . exception_too_many_members , r . getDescription ( ) ) ) ; } } }
Check the future relation member count against the maximum supported by the current API
Check the future relation member count against the maximum supported by the current API