@Override protected void refreshStories() { Uri storiesUri = FeedProvider.FEED_STORIES_URI.buildUpon().appendPath(feedId).build(); Cursor cursor = contentResolver.query( storiesUri, null, DatabaseConstants.getStorySelectionFromState(currentState), null, DatabaseConstants.getStorySortOrder(storyOrder)); adapter.swapCursor(cursor); }
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) { if (cursor != null) { adapter.swapCursor(cursor); } }