Code example for FragmentActivity

Methods: getSupportLoaderManager, setProgressBarIndeterminateVisibility

0
 
    @Override 
    public void onLoadFinished(Loader<T> loader, T data) {
        FragmentActivity fragmentActivity = activityWeakReference.get();
        if (fragmentActivity != null) {
            LoaderManager loaderManager = fragmentActivity.getSupportLoaderManager();
            if (loaderManager != null && !loaderManager.hasRunningLoaders()) {
                fragmentActivity.setProgressBarIndeterminateVisibility(false);
            } 
        } 
        wrappedCallbacks.onLoadFinished(loader, data);
    } 
 
    @Override 
    public void onLoaderReset(Loader<T> loader) {
        wrappedCallbacks.onLoaderReset(loader);
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE