OC-2922: Fix the bug: Menu in the gallery is not refresh after share or unsharing a file

This commit is contained in:
masensio 2014-02-12 18:38:18 +01:00
parent 397fa5904a
commit f51977d9ea

View file

@ -269,7 +269,8 @@ public class PreviewImageFragment extends FileFragment implements OnRemoteOper
MenuItem item = menu.findItem(R.id.action_unshare_file);
// Options shareLink
if (!getFile().isShareByLink()) {
OCFile file = ((FileActivity) getSherlockActivity()).getFile();
if (!file.isShareByLink()) {
item.setVisible(false);
item.setEnabled(false);
} else {