use of app.philm.in.model.PhilmMovie in project philm by chrisbanes.
the class MovieController method fetchDetailMovieFromTmdb.
private void fetchDetailMovieFromTmdb(final int callingId, int id) {
Preconditions.checkNotNull(id, "id cannot be null");
PhilmMovie movie = mMoviesState.getMovie(id);
if (movie != null) {
movie.markFullFetchStarted(PhilmModel.TYPE_TMDB);
}
executeTask(new FetchTmdbDetailMovieRunnable(callingId, id));
}
use of app.philm.in.model.PhilmMovie in project philm by chrisbanes.
the class SideMenuFragment method showMovieCheckin.
@Override
public void showMovieCheckin(WatchingMovie checkin) {
mCheckinLayout.setVisibility(View.VISIBLE);
mCheckinImageView.setVisibility(View.VISIBLE);
final PhilmMovie movie = checkin.movie;
mCheckinTitleTextView.setText(movie.getTitle());
mCheckinImageView.loadBackdrop(movie);
mCheckinImageView.setColorFilter(mColorFilter);
}
use of app.philm.in.model.PhilmMovie in project philm by chrisbanes.
the class MovieGridAdapter method getView.
@Override
public View getView(int position, View convertView, ViewGroup viewGroup) {
View view = convertView;
if (view == null) {
view = mLayoutInflater.inflate(R.layout.item_grid_movie, viewGroup, false);
}
final PhilmMovie movie = getItem(position).getListItem();
final TextView title = (TextView) view.findViewById(R.id.textview_title);
title.setText(movie.getTitle());
title.setVisibility(View.VISIBLE);
final PhilmImageView imageView = (PhilmImageView) view.findViewById(R.id.imageview_poster);
imageView.setAutoFade(false);
imageView.loadPoster(movie, new PhilmImageView.Listener() {
@Override
public void onSuccess(PhilmImageView imageView, Bitmap bitmap) {
title.setVisibility(View.GONE);
}
@Override
public void onError(PhilmImageView imageView) {
title.setVisibility(View.VISIBLE);
}
});
return view;
}
use of app.philm.in.model.PhilmMovie in project philm by chrisbanes.
the class MovieController method fetchMovieCastIfNeeded.
private void fetchMovieCastIfNeeded(final int callingId, String id) {
Preconditions.checkNotNull(id, "id cannot be null");
PhilmMovie movie = mMoviesState.getMovie(id);
if (movie != null && PhilmCollections.isEmpty(movie.getCast())) {
fetchMovieCredits(callingId, movie);
}
}
use of app.philm.in.model.PhilmMovie in project philm by chrisbanes.
the class MovieController method fetchMovieCrewIfNeeded.
private void fetchMovieCrewIfNeeded(final int callingId, String id) {
Preconditions.checkNotNull(id, "id cannot be null");
PhilmMovie movie = mMoviesState.getMovie(id);
if (movie != null && PhilmCollections.isEmpty(movie.getCrew())) {
fetchMovieCredits(callingId, movie);
}
}
Aggregations