mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
do not show "switch" menu item on file details/preview text/video/audio
This commit is contained in:
parent
6920a7495e
commit
cd04b0d389
2 changed files with 24 additions and 0 deletions
|
@ -217,6 +217,24 @@ public class FileDetailFragment extends FileFragment implements OnClickListener
|
|||
item.setVisible(false);
|
||||
item.setEnabled(false);
|
||||
}
|
||||
|
||||
item = menu.findItem(R.id.action_switch_view);
|
||||
if (item != null){
|
||||
item.setVisible(false);
|
||||
item.setEnabled(false);
|
||||
}
|
||||
|
||||
item = menu.findItem(R.id.action_sync_account);
|
||||
if (item != null) {
|
||||
item.setVisible(false);
|
||||
item.setEnabled(false);
|
||||
}
|
||||
|
||||
item = menu.findItem(R.id.action_sort);
|
||||
if (item != null) {
|
||||
item.setVisible(false);
|
||||
item.setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -296,6 +296,12 @@ public class PreviewTextFragment extends FileFragment {
|
|||
item.setVisible(false);
|
||||
item.setEnabled(false);
|
||||
}
|
||||
|
||||
item = menu.findItem(R.id.action_sort);
|
||||
if (item != null) {
|
||||
item.setVisible(false);
|
||||
item.setEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue