app/src/main/java/org/andstatus/app/timeline/TimelineActivity.java
/**
     * Prepare a query to the ContentProvider (to the database) and load the visible List of notes with this data
     * This is done asynchronously.
     * This method should be called from UI thread only.
     */
Prepare a query to the ContentProvider (to the database) and load the visible List of notes with this data
This is done asynchronously.
This method should be called from UI thread only.
Prepare a query to the ContentProvider ( to the database ) and load the visible List of notes with this data This is done asynchronously . This method should be called from UI thread only .
protected void showList(TimelineParameters params, TriState chainedRequest) {
        final String method = "showList";
        if (params.isEmpty()) {
            MyLog.v(this, method + "; ignored empty request");
            return;
        }
        boolean isDifferentRequest = !params.equals(paramsToLoad);
        paramsToLoad = params;
        if (isLoading() && chainedRequest != TriState.TRUE) {
            if(MyLog.isVerboseEnabled()) {
                if (isDifferentRequest) {
                    MyLog.v(this, () -> method + "; different while loading " + params.toSummary());
                } else {
                    MyLog.v(this, () -> method + "; ignored duplicating " + params.toSummary());
                }
            }
        } else {
            MyLog.v(this, () -> method
                    + (chainedRequest == TriState.TRUE ? "; chained" : "")
                    + "; requesting " + (isDifferentRequest ? "" : "duplicating ")
                    + params.toSummary());
            if (chainedRequest.untrue) saveTimelinePosition();
            disableHeaderSyncButton(R.string.loading);
            disableFooterButton(R.string.loading);
            showLoading(method, getText(R.string.loading) + " "
                    + paramsToLoad.toSummary() + HORIZONTAL_ELLIPSIS);
            super.showList(chainedRequest.toBundle(paramsToLoad.whichPage.toBundle(),
                    IntentExtra.CHAINED_REQUEST.key));
        }
    }
protected void showList ( TimelineParameters params , TriState chainedRequest ) { final String method = "showList" ; if ( params . isEmpty ( ) ) { MyLog . v ( this , method + "; ignored empty request" ) ; return ; } boolean isDifferentRequest = ! params . equals ( paramsToLoad ) ; paramsToLoad = params ; if ( isLoading ( ) && chainedRequest != TriState . TRUE ) { if ( MyLog . isVerboseEnabled ( ) ) { if ( isDifferentRequest ) { MyLog . v ( this , ( ) -> method + "; different while loading " + params . toSummary ( ) ) ; } else { MyLog . v ( this , ( ) -> method + "; ignored duplicating " + params . toSummary ( ) ) ; } } } else { MyLog . v ( this , ( ) -> method + ( chainedRequest == TriState . TRUE ? "; chained" : "" ) + "; requesting " + ( isDifferentRequest ? "" : "duplicating " ) + params . toSummary ( ) ) ; if ( chainedRequest . untrue ) saveTimelinePosition ( ) ; disableHeaderSyncButton ( R . string . loading ) ; disableFooterButton ( R . string . loading ) ; showLoading ( method , getText ( R . string . loading ) + " " + paramsToLoad . toSummary ( ) + HORIZONTAL_ELLIPSIS ) ; super . showList ( chainedRequest . toBundle ( paramsToLoad . whichPage . toBundle ( ) , IntentExtra . CHAINED_REQUEST . key ) ) ; } }
Prepare a query to the ContentProvider (to the database) and load the visible List of notes with this data
 This is done asynchronously.
Prepare a query to the ContentProvider ( to the database ) and load the visible List of notes with this data This is done asynchronously .