Back to project page mint.
The source code is released under:
GNU General Public License
If you think the Android project mint listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.gmail.altakey.mint.util; //from ww w. ja v a2s. c o m import android.os.Bundle; import android.app.LoaderManager; import android.content.Loader; public class LoaderUtil { public static <T> void initLoader(final int loaderId, final Bundle args, final LoaderManager.LoaderCallbacks<T> callbacks, final LoaderManager loaderManager) { final Loader<T> loader = loaderManager.getLoader(loaderId); if (loader != null && loader.isReset()) { loaderManager.restartLoader(loaderId, args, callbacks); } else { loaderManager.initLoader(loaderId, args, callbacks); } } }