diff --git a/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java b/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java index cad7a4043c..ed6161c267 100644 --- a/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java +++ b/src/main/java/com/owncloud/android/ui/preview/PreviewImageFragment.java @@ -296,6 +296,13 @@ public class PreviewImageFragment extends FileFragment { item.setEnabled(false); } + // additional restriction for this fragment + item = menu.findItem(R.id.action_select_all); + if (item != null) { + item.setVisible(false); + item.setEnabled(false); + } + // additional restriction for this fragment item = menu.findItem(R.id.action_move); if (item != null) { diff --git a/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java b/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java index 72d8b9e10f..3188de0a6e 100644 --- a/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java +++ b/src/main/java/com/owncloud/android/ui/preview/PreviewMediaFragment.java @@ -388,6 +388,13 @@ public class PreviewMediaFragment extends FileFragment implements item.setEnabled(false); } + // additional restriction for this fragment + item = menu.findItem(R.id.action_select_all); + if (item != null) { + item.setVisible(false); + item.setEnabled(false); + } + // additional restriction for this fragment item = menu.findItem(R.id.action_move); if (item != null) { diff --git a/src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.java b/src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.java index 176b5f5e84..c048c5e2e4 100644 --- a/src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.java +++ b/src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.java @@ -297,6 +297,13 @@ public class PreviewTextFragment extends FileFragment { item.setEnabled(false); } + // additional restriction for this fragment + item = menu.findItem(R.id.action_select_all); + if (item != null) { + item.setVisible(false); + item.setEnabled(false); + } + // additional restriction for this fragment item = menu.findItem(R.id.action_move); if (item != null) {