app/src/main/java/fr/neamar/kiss/searcher/Searcher.java
/**
     * This is called from the background thread by the providers
     */
This is called from the background thread by the providers
This is called from the background thread by the providers
public boolean addResult(Pojo... pojos) {
        if (isCancelled())
            return false;
        MainActivity activity = activityWeakReference.get();
        if (activity == null)
            return false;
        Collections.addAll(this.processedPojos, pojos);
        int maxResults = getMaxResultCount();
        while (this.processedPojos.size() > maxResults)
            this.processedPojos.poll();
        return true;
    }
public boolean addResult ( Pojo ... pojos ) { if ( isCancelled ( ) ) return false ; MainActivity activity = activityWeakReference . get ( ) ; if ( activity == null ) return false ; Collections . addAll ( this . processedPojos , pojos ) ; int maxResults = getMaxResultCount ( ) ; while ( this . processedPojos . size ( ) > maxResults ) this . processedPojos . poll ( ) ; return true ; }
This is called from the background thread by the providers
This is called from the background thread by the providers