do not show "switch" menu item on file details/preview text/video/audio

This commit is contained in:
tobiasKaminsky 2015-11-06 18:19:50 +01:00 committed by David A. Velasco
parent 6920a7495e
commit cd04b0d389
2 changed files with 24 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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);
}
}
/**