OC-2834: Access to unshare link from FileDetailFragment

This commit is contained in:
masensio 2014-02-05 11:39:18 +01:00
parent 56c28cd0aa
commit ffdd188f06

View file

@ -345,6 +345,11 @@ public class FileDetailFragment extends FileFragment implements
activity.getFileOperationsHelper().shareFileWithLink(getFile(), activity);
return true;
}
case R.id.action_unshare_file: {
FileDisplayActivity activity = (FileDisplayActivity) getSherlockActivity();
activity.getFileOperationsHelper().unshareFileWithLink(getFile(), activity);
return true;
}
case R.id.action_open_file_with: {
FileDisplayActivity activity = (FileDisplayActivity) getSherlockActivity();
activity.getFileOperationsHelper().openFile(getFile(), activity);