mirror of
https://framagit.org/tom79/fedilab-tube
synced 2025-06-05 21:09:11 +02:00
Fix issue #55 - Honor downloads disabled
This commit is contained in:
@ -890,6 +890,9 @@ public class PeertubeActivity extends AppCompatActivity implements CommentListAd
|
|||||||
if (!isMyVideo) {
|
if (!isMyVideo) {
|
||||||
popup.getMenu().findItem(R.id.action_edit).setVisible(false);
|
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 -> {
|
popup.setOnMenuItemClickListener(item -> {
|
||||||
int itemId = item.getItemId();
|
int itemId = item.getItemId();
|
||||||
if (itemId == R.id.action_download) {
|
if (itemId == R.id.action_download) {
|
||||||
|
Reference in New Issue
Block a user