use of butter.droid.provider.base.filter.Genre in project butter-android by butterproject.
the class MediaListPresenterImpl method onGenreChanged.
@Override
public void onGenreChanged(UiGenre genre) {
Genre g = genre.getGenre();
if (filter.getGenre() == null || !filter.getGenre().equals(g)) {
filter = new Filter(g, filter.getSorter(), filter.getQuery());
items.clear();
view.refreshAdapter();
}
}
use of butter.droid.provider.base.filter.Genre in project butter-android by butterproject.
the class MockMediaProvider method mapEpisodes.
private Episode[] mapEpisodes(MockEpisode[] mockEpisodes) {
Episode[] episodes = new Episode[mockEpisodes.length];
for (int i = 0; i < mockEpisodes.length; i++) {
MockEpisode episode = mockEpisodes[i];
episodes[i] = new Episode(String.valueOf(episode.getId()), episode.getTitle(), episode.getYear(), new Genre[0], -1, episode.getPoster(), episode.getBackdrop(), episode.getSynopsis(), new Torrent[] { new Torrent(episode.getTorrent(), new Format(episode.getQuality(), Format.FORMAT_NORMAL), 0) }, episode.getEpisdoe());
}
return episodes;
}
Aggregations