Code example for ListFragment

Methods: isResumed, setListShown

0
		return new FileLoader(getActivity(), path);
	} 
 
	public void onLoadFinished(Loader<List<File>> loader, List<File> data) {
		adapter.setListItems(data);
		if (isResumed())
			setListShown(true);
		else 
			setListShownNoAnimation(true);
	} 
 
	public void onLoaderReset(Loader<List<File>> loader) {
		adapter.clear();
	} 
}