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
No known key found for this signature in database
GPG key ID: F200BFD6F29DDD85

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);