1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 16:40:32 +00:00

Add playlist to queue when long click on 'Background'

This commit is contained in:
dotvirus 2019-01-18 23:16:02 +01:00
parent 050d3058f9
commit 28e5ee51ec

View File

@ -305,6 +305,14 @@ public class PlaylistFragment extends BaseListInfoFragment<PlaylistInfo> {
NavigationHelper.playOnPopupPlayer(activity, getPlayQueue()));
headerBackgroundButton.setOnClickListener(view ->
NavigationHelper.playOnBackgroundPlayer(activity, getPlayQueue()));
headerBackgroundButton.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
NavigationHelper.enqueueOnBackgroundPlayer(activity, getPlayQueue());
return true;
}
});
}
private PlayQueue getPlayQueue() {