mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
OC-2832: Accesss to share link from PreviewMediaFragment
This commit is contained in:
parent
046a566ed4
commit
c1af013596
1 changed files with 9 additions and 1 deletions
|
@ -308,7 +308,7 @@ public class PreviewMediaFragment extends FileFragment implements
|
|||
public boolean onOptionsItemSelected(MenuItem item) {
|
||||
switch (item.getItemId()) {
|
||||
case R.id.action_share_file: {
|
||||
//shareFileWithLink(getFile());
|
||||
shareFileWithLink();
|
||||
return true;
|
||||
}
|
||||
case R.id.action_open_file_with: {
|
||||
|
@ -330,6 +330,14 @@ public class PreviewMediaFragment extends FileFragment implements
|
|||
}
|
||||
|
||||
|
||||
private void shareFileWithLink() {
|
||||
stopPreview(false);
|
||||
FileActivity activity = (FileActivity)((FileFragment.ContainerActivity)getActivity());
|
||||
activity.getFileOperationsHelper().shareFileWithLink(getFile(), activity);
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void seeDetails() {
|
||||
stopPreview(false);
|
||||
((FileFragment.ContainerActivity)getActivity()).showDetails(getFile());
|
||||
|
|
Loading…
Reference in a new issue