Code example for ListFragment

Methods: setListShownNoAnimation, isResumed

0
 
        public void onLoadFinished(Loader<Cursor> loader, Cursor data) {
            mAdapter.swapCursor(data);
 
            // The list should now be shown. 
            if (isResumed()) {
                setListShown(true);
            } else { 
                setListShownNoAnimation(true);
            } 
        } 
 
        public void onLoaderReset(Loader<Cursor> loader) {
            mAdapter.swapCursor(null);
        } 
    } 
} 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE