1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-09-10 06:45:59 +00:00

Merge pull request #2636 from dotvirus/longpress-on-custom-playlists

Add local playlist to queue when long clicking on 'Background/Popup'
This commit is contained in:
Tobias Groza
2019-12-31 01:50:52 +01:00
committed by GitHub

View File

@@ -325,6 +325,16 @@ public class LocalPlaylistFragment extends BaseLocalListFragment<List<PlaylistSt
headerBackgroundButton.setOnClickListener(view ->
NavigationHelper.playOnBackgroundPlayer(activity, getPlayQueue(), false));
headerPopupButton.setOnLongClickListener(view -> {
NavigationHelper.enqueueOnPopupPlayer(activity, getPlayQueue(), true);
return true;
});
headerBackgroundButton.setOnLongClickListener(view -> {
NavigationHelper.enqueueOnBackgroundPlayer(activity, getPlayQueue(), true);
return true;
});
hideLoading();
}