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) {
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue