From 34aa3d3e00eacf618133e3003ebb0700459229e7 Mon Sep 17 00:00:00 2001 From: Stypox Date: Sun, 19 Apr 2020 10:34:07 +0200 Subject: [PATCH] Enqueue on long click on background/popup in channel --- .../fragments/list/channel/ChannelFragment.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java index fbe3e34c7..ad8d25d3a 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/list/channel/ChannelFragment.java @@ -465,6 +465,16 @@ public class ChannelFragment extends BaseListInfoFragment { .playOnPopupPlayer(activity, getPlayQueue(), false)); 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; + }); } private void showContentNotSupported() {