1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-11 11:19:54 +01:00

Clean up download dialog opening

This commit is contained in:
Aris Poloway 2018-04-08 11:47:11 -04:00
parent 676d64a24a
commit 169b6acd24

View File

@ -356,10 +356,9 @@ public class VideoDetailFragment
}
break;
case R.id.detail_controls_download:
if (!PermissionHelper.checkStoragePermissions(activity, PermissionHelper.DOWNLOAD_DIALOG_REQUEST_CODE)) {
return;
if (PermissionHelper.checkStoragePermissions(activity, PermissionHelper.DOWNLOAD_DIALOG_REQUEST_CODE)) {
this.openDownloadDialog();
}
this.openDownloadDialog();
break;
case R.id.detail_uploader_root_layout:
if (TextUtils.isEmpty(currentInfo.getUploaderUrl())) {