From d494b6c934e14274524dcab44d80582fe91427ea Mon Sep 17 00:00:00 2001 From: Mauricio Colli Date: Sun, 8 Apr 2018 16:53:15 -0300 Subject: [PATCH] Long-click to open the downloads activity - Closes #1263 --- .../schabi/newpipe/fragments/detail/VideoDetailFragment.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java index 2239cc634..e3b826feb 100644 --- a/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java +++ b/app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java @@ -397,6 +397,9 @@ public class VideoDetailFragment case R.id.detail_controls_popup: openPopupPlayer(true); break; + case R.id.detail_controls_download: + NavigationHelper.openDownloads(getActivity()); + break; } return true; @@ -518,6 +521,7 @@ public class VideoDetailFragment detailControlsPopup.setOnClickListener(this); detailControlsAddToPlaylist.setOnClickListener(this); detailControlsDownload.setOnClickListener(this); + detailControlsDownload.setOnLongClickListener(this); relatedStreamExpandButton.setOnClickListener(this); detailControlsBackground.setLongClickable(true);