super(context); mRoots = roots; mState = state; getContext().getContentResolver() .registerContentObserver(RootsCache.sNotificationUri, false, mObserver);
if (isReset()) { return; } Collection<RootInfo> oldResult = mResult; mResult = result; if (isStarted()) { super.deliverResult(result); }
return mRoots.getMatchingRootsBlocking(mState);
super.onReset(); // Ensure the loader is stopped onStopLoading(); mResult = null; getContext().getContentResolver().unregisterContentObserver(mObserver);
if (mResult != null) { deliverResult(mResult); } if (takeContentChanged() || mResult == null) { forceLoad(); }
cancelLoad();