Add a new smart playlist "Not played lately" playlist (#613)

* Add "Not played lately" playlist (#1)

* Fix bad recent playlist construction (#6)

* Revert History rename

* Code review
This commit is contained in:
soncaokim 2018-12-02 18:30:01 +01:00 committed by Eugene
commit 764751381a
9 changed files with 126 additions and 8 deletions

View file

@ -16,6 +16,7 @@ import com.kabouzeid.gramophone.model.Playlist;
import com.kabouzeid.gramophone.model.smartplaylist.HistoryPlaylist;
import com.kabouzeid.gramophone.model.smartplaylist.LastAddedPlaylist;
import com.kabouzeid.gramophone.model.smartplaylist.MyTopTracksPlaylist;
import com.kabouzeid.gramophone.model.smartplaylist.NotRecentlyPlayedPlaylist;
import java.util.ArrayList;
@ -80,6 +81,7 @@ public class PlaylistsFragment extends AbsLibraryPagerRecyclerViewFragment<Playl
playlists.add(new LastAddedPlaylist(context));
playlists.add(new HistoryPlaylist(context));
playlists.add(new NotRecentlyPlayedPlaylist(context));
playlists.add(new MyTopTracksPlaylist(context));
playlists.addAll(PlaylistLoader.getAllPlaylists(context));