private void updateMovieDetails() { if (movies != null && !movies.isEmpty()) { if (selectedMovie == null) selectedMovie = movies.get(0); if (mSelectedMovieChange != null) { Intent shareLink = null; if (mSelectedMovieTrailers != null && !mSelectedMovieTrailers.isEmpty() && mSelectedMovieTrailers.get(0) != null) shareLink = Utilities.createShareIntent( getString(R.string.youtube_web_link) + mSelectedMovieTrailers.get(0).getKey()); mSelectedMovieChange.onSelectedMovieChange( selectedMovie, mSelectedMovieReviews, mSelectedMovieTrailers, shareLink); } } forceOpenFragment(UtilFragment.FRAGMENT_MOVIE_DETAIL); }
@Override public void onTrailerClicked(String youtubeVideoID) { Utilities.watchYoutubeVideo(this, youtubeVideoID); }