From b61b6868a6df2aaa04ad01e7f1af358b0cab3294 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 8 Nov 2020 10:27:40 +0100 Subject: [PATCH] Fix issue #55 - Honor downloads disabled --- .../main/java/app/fedilab/fedilabtube/PeertubeActivity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java index c677920..f57d698 100644 --- a/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java +++ b/app/src/main/java/app/fedilab/fedilabtube/PeertubeActivity.java @@ -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) {