Search in sources :

Example 1 with RateDialogFragment

use of com.battlelancer.seriesguide.ui.dialogs.RateDialogFragment in project SeriesGuide by UweTrottmann.

the class MovieDetailsFragment method rateMovie.

private void rateMovie() {
    if (TraktCredentials.ensureCredentials(getActivity())) {
        RateDialogFragment newFragment = RateDialogFragment.newInstanceMovie(tmdbId);
        newFragment.show(getFragmentManager(), "ratedialog");
        Utils.trackAction(getActivity(), TAG, "Rate (trakt)");
    }
}
Also used : RateDialogFragment(com.battlelancer.seriesguide.ui.dialogs.RateDialogFragment)

Example 2 with RateDialogFragment

use of com.battlelancer.seriesguide.ui.dialogs.RateDialogFragment in project SeriesGuide by UweTrottmann.

the class ShowFragment method rateShow.

private void rateShow() {
    if (TraktCredentials.ensureCredentials(getActivity())) {
        RateDialogFragment rateDialog = RateDialogFragment.newInstanceShow(getShowTvdbId());
        rateDialog.show(getFragmentManager(), "ratedialog");
        Utils.trackAction(getActivity(), TAG, "Rate (trakt)");
    }
}
Also used : RateDialogFragment(com.battlelancer.seriesguide.ui.dialogs.RateDialogFragment)

Aggregations

RateDialogFragment (com.battlelancer.seriesguide.ui.dialogs.RateDialogFragment)2