mirror of
https://framagit.org/tom79/fedilab-tube
synced 2025-05-25 16:14:15 +02:00
Fix issue #55 - Honor downloads disabled
This commit is contained in:
parent
2f8ecd1f3e
commit
b61b6868a6
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user