1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-22 10:57:38 +00:00

Long-click to open the downloads activity

- Closes #1263
This commit is contained in:
Mauricio Colli
2018-04-08 16:53:15 -03:00
parent 7294220727
commit d494b6c934

View File

@@ -397,6 +397,9 @@ public class VideoDetailFragment
case R.id.detail_controls_popup: case R.id.detail_controls_popup:
openPopupPlayer(true); openPopupPlayer(true);
break; break;
case R.id.detail_controls_download:
NavigationHelper.openDownloads(getActivity());
break;
} }
return true; return true;
@@ -518,6 +521,7 @@ public class VideoDetailFragment
detailControlsPopup.setOnClickListener(this); detailControlsPopup.setOnClickListener(this);
detailControlsAddToPlaylist.setOnClickListener(this); detailControlsAddToPlaylist.setOnClickListener(this);
detailControlsDownload.setOnClickListener(this); detailControlsDownload.setOnClickListener(this);
detailControlsDownload.setOnLongClickListener(this);
relatedStreamExpandButton.setOnClickListener(this); relatedStreamExpandButton.setOnClickListener(this);
detailControlsBackground.setLongClickable(true); detailControlsBackground.setLongClickable(true);