Fix issue #55 - Honor downloads disabled

This commit is contained in:
Thomas 2020-11-08 10:27:40 +01:00
parent 2f8ecd1f3e
commit b61b6868a6
1 changed files with 3 additions and 0 deletions

View File

@ -890,6 +890,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
if (!isMyVideo) {
popup.getMenu().findItem(R.id.action_edit).setVisible(false);
}
MenuItem itemDownload = popup.getMenu().findItem(R.id.action_download);
itemDownload.setEnabled(peertube != null && peertube.isDownloadEnabled());
popup.setOnMenuItemClickListener(item -> {
int itemId = item.getItemId();
if (itemId == R.id.action_download) {