@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; } }
@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; } }