mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
Merge pull request #2023 from dotvirus/enqueue-playlist
Add playlist to queue when long clicking on 'Background'
This commit is contained in:
commit
15eb7f3186
@ -305,6 +305,16 @@ public class PlaylistFragment extends BaseListInfoFragment<PlaylistInfo> {
|
|||||||
NavigationHelper.playOnPopupPlayer(activity, getPlayQueue()));
|
NavigationHelper.playOnPopupPlayer(activity, getPlayQueue()));
|
||||||
headerBackgroundButton.setOnClickListener(view ->
|
headerBackgroundButton.setOnClickListener(view ->
|
||||||
NavigationHelper.playOnBackgroundPlayer(activity, getPlayQueue()));
|
NavigationHelper.playOnBackgroundPlayer(activity, getPlayQueue()));
|
||||||
|
|
||||||
|
headerPopupButton.setOnLongClickListener(view -> {
|
||||||
|
NavigationHelper.enqueueOnPopupPlayer(activity, getPlayQueue());
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
headerBackgroundButton.setOnLongClickListener(view -> {
|
||||||
|
NavigationHelper.enqueueOnBackgroundPlayer(activity, getPlayQueue());
|
||||||
|
return true;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private PlayQueue getPlayQueue() {
|
private PlayQueue getPlayQueue() {
|
||||||
|
Loading…
Reference in New Issue
Block a user