コード例 #1
0
 @Override
 public void onLoaderReset(Loader<Cursor> loader) {
   switch (loader.getId()) {
     case MOVIE_TRAILER_LOADER:
       mTrailersListAdapter.swapCursor(null);
       break;
     case MOVIE_REVIEW_LOADER:
       mReviewsListAdapter.swapCursor(null);
       break;
   }
 }
コード例 #2
0
 @Override
 public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {
   switch (loader.getId()) {
     case MOVIE_TRAILER_LOADER:
       mTrailersListAdapter.swapCursor(cursor);
       Utility.setDynamicHeight(mMovieTrailersListView);
       break;
     case MOVIE_REVIEW_LOADER:
       mReviewsListAdapter.swapCursor(cursor);
       Utility.setDynamicHeight(mMovieReviewsListView);
       break;
   }
 }