diff --git a/owncloudApp/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java b/owncloudApp/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java index d1306830431e..b89dfdc0b285 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java +++ b/owncloudApp/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java @@ -180,37 +180,6 @@ public boolean isSharedSupported() { return false; } - /** - * Helper method to remove an existing share, no matter if public or private. - * Starts a request to do it in {@link OperationsService} - * - * @param share The {@link OCShare} to remove (unshare). - */ - public void removeShare(OCShare share) { - Intent unshareService = new Intent(mFileActivity, OperationsService.class); - unshareService.setAction(OperationsService.ACTION_UNSHARE); - unshareService.putExtra(OperationsService.EXTRA_SHARE_ID, share.getId()); - unshareService.putExtra(OperationsService.EXTRA_ACCOUNT, mFileActivity.getAccount()); - - queueShareIntent(unshareService); - } - - private void queueShareIntent(Intent shareIntent) { - if (isSharedSupported()) { - // Unshare the file - mWaitingForOpId = mFileActivity.getOperationsServiceBinder(). - queueNewOperation(shareIntent); - - mFileActivity.showLoadingDialog(R.string.wait_a_moment); - - } else { - // Show a Message - mFileActivity.showSnackMessage( - mFileActivity.getString(R.string.share_link_no_support_share_api) - ); - } - } - /** * Show an instance of {@link com.owncloud.android.domain.sharing.shares.model.ShareType} for sharing or unsharing * the {@link OCFile} received as parameter. diff --git a/owncloudApp/src/main/res/menu/file_actions_menu.xml b/owncloudApp/src/main/res/menu/file_actions_menu.xml index 5909f985fe39..09bce31f49b1 100644 --- a/owncloudApp/src/main/res/menu/file_actions_menu.xml +++ b/owncloudApp/src/main/res/menu/file_actions_menu.xml @@ -17,19 +17,22 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . --> - + android:showAsAction="never" + tools:ignore="AppCompatResource" /> + android:showAsAction="never" + tools:ignore="AppCompatResource" />