From: masensio Date: Tue, 20 Oct 2015 16:31:16 +0000 (+0200) Subject: Remove unshare with users/groups option from the menu X-Git-Tag: oc-android-1.9^2~30^2~35 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/ceffbc4aa8b4da2be22d1265bb708ecb92295f4f Remove unshare with users/groups option from the menu --- 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()) {