app/src/main/java/openfoodfacts/github/scrachx/openfood/views/ProductListsActivity.java
/**
     * Check if listname already in products lists.
     * @param listName
     * @return
     */
Check if listname already in products lists.
@param listName
@return
Check if listname already in products lists . @param listName @return
private boolean checkListNameExist(String listName) {
        for (Iterator<ProductLists> i = productLists.iterator(); i.hasNext();) {
            if (i.next().getListName().equals(listName)) {
                return true;
            }
        }
        return false;
    }
private boolean checkListNameExist ( String listName ) { for ( Iterator < ProductLists > i = productLists . iterator ( ) ; i . hasNext ( ) ; ) { if ( i . next ( ) . getListName ( ) . equals ( listName ) ) { return true ; } } return false ; }
Check if listname already in products lists.
Check if listname already in products lists .