mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
OC-2922: Fix the bug: Menu in the gallery is not refresh after share or unsharing a file
This commit is contained in:
parent
397fa5904a
commit
f51977d9ea
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue