Пример #1
0
 @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);
 }
Пример #2
0
 @Override
 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
   if (cursor != null) {
     adapter.swapCursor(cursor);
   }
 }