app/src/main/java/fr/neamar/kiss/MainActivity.java
/**
     * This function gets called on query changes.
     * It will ask all the providers for data
     * This function is not called for non search-related changes! Have a look at onDataSetChanged() if that's what you're looking for :)
     *
     * @param isRefresh whether the query is refreshing the existing result, or is a completely new query
     * @param query     the query on which to search
     */
This function gets called on query changes.
It will ask all the providers for data
This function is not called for non search-related changes. Have a look at onDataSetChanged() if that's what you're looking for :)

@param isRefresh whether the query is refreshing the existing result, or is a completely new query
@param query     the query on which to search
This function gets called on query changes . It will ask all the providers for data This function is not called for non search - related changes . Have a look at onDataSetChanged () if that ' s what you ' re looking for : ) @param isRefresh whether the query is refreshing the existing result or is a completely new query @param query the query on which to search
private void updateSearchRecords(boolean isRefresh, String query) {
        if (isRefresh && isViewingAllApps()) {
            Searcher searcher = new ApplicationsSearcher(this);
            searcher.setRefresh(isRefresh);
            runTask(searcher);
            return;
        }
        resetTask();
        dismissPopup();
        forwarderManager.updateSearchRecords(isRefresh, query);
        if (query.isEmpty()) {
            systemUiVisibilityHelper.resetScroll();
        } else {
            QuerySearcher querySearcher = new QuerySearcher(this, query);
            querySearcher.setRefresh(isRefresh);
            runTask(querySearcher);
        }
    }
private void updateSearchRecords ( boolean isRefresh , String query ) { if ( isRefresh && isViewingAllApps ( ) ) { Searcher searcher = new ApplicationsSearcher ( this ) ; searcher . setRefresh ( isRefresh ) ; runTask ( searcher ) ; return ; } resetTask ( ) ; dismissPopup ( ) ; forwarderManager . updateSearchRecords ( isRefresh , query ) ; if ( query . isEmpty ( ) ) { systemUiVisibilityHelper . resetScroll ( ) ; } else { QuerySearcher querySearcher = new QuerySearcher ( this , query ) ; querySearcher . setRefresh ( isRefresh ) ; runTask ( querySearcher ) ; } }
This function gets called on query changes.
This function gets called on query changes .
// Refreshing while viewing all apps (for instance app installed or uninstalled in the background)