diff --git a/api/current.xml b/api/current.xml index 655767442f75e..c7e0e5807ad77 100644 --- a/api/current.xml +++ b/api/current.xml @@ -27930,6 +27930,19 @@ + + + + extends Fragment } } - /** + /** + * Stops and removes the loader with the given ID. + */ + public void stopLoading(int id) { + if (mLoaders != null) { + LoaderInfo info = mLoaders.remove(id); + if (info != null) { + Loader loader = info.loader; + if (loader != null) { + loader.unregisterListener(this); + loader.destroy(); + } + } + } + } + + /** * @return the Loader with the given id or null if no matching Loader * is found. */