From ceffbc4aa8b4da2be22d1265bb708ecb92295f4f Mon Sep 17 00:00:00 2001 From: masensio Date: Tue, 20 Oct 2015 18:31:16 +0200 Subject: [PATCH] Remove unshare with users/groups option from the menu --- res/menu/file_actions_menu.xml | 5 +---- res/values/strings.xml | 1 - src/com/owncloud/android/files/FileMenuFilter.java | 6 ------ 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/res/menu/file_actions_menu.xml b/res/menu/file_actions_menu.xml index 83780bcc..586ec4a2 100644 --- a/res/menu/file_actions_menu.xml +++ b/res/menu/file_actions_menu.xml @@ -32,10 +32,7 @@ android:id="@+id/action_share_with_users" android:title="@string/action_share_with_users" android:orderInCategory="1" /> - + Share link Unshare link Share with users - Unshare with users Yes No OK diff --git a/src/com/owncloud/android/files/FileMenuFilter.java b/src/com/owncloud/android/files/FileMenuFilter.java index 364d1618..8c048425 100644 --- a/src/com/owncloud/android/files/FileMenuFilter.java +++ b/src/com/owncloud/android/files/FileMenuFilter.java @@ -208,12 +208,6 @@ public class FileMenuFilter { toShow.add(R.id.action_share_with_users); } - // UNSHARE FILE, with Users - if ( !shareAllowed || !shareWithUsersEnable || (mFile == null || !mFile.isSharedViaUsers())) { - toHide.add(R.id.action_unshare_with_users); - } else { - toShow.add(R.id.action_unshare_with_users); - } // SEE DETAILS if (mFile == null || mFile.isFolder()) { -- 2.11.0