use of com.owncloud.android.ui.dialog.SendShareDialog in project android by nextcloud.
the class FileOperationsHelper method sendShareFile.
public void sendShareFile(OCFile file) {
// Show dialog
FragmentManager fm = mFileActivity.getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
ft.addToBackStack(null);
SendShareDialog mSendShareDialog = SendShareDialog.newInstance(file);
mSendShareDialog.setFileOperationsHelper(this);
mSendShareDialog.show(ft, "TAG_SEND_SHARE_DIALOG");
}
use of com.owncloud.android.ui.dialog.SendShareDialog in project android by nextcloud.
the class FileOperationsHelper method sendShareFile.
public void sendShareFile(OCFile file, boolean hideNcSharingOptions) {
// Show dialog
FragmentManager fm = fileActivity.getSupportFragmentManager();
FragmentTransaction ft = fm.beginTransaction();
ft.addToBackStack(null);
OCCapability capability = fileActivity.getStorageManager().getCapability(fileActivity.getAccount().name);
SendShareDialog mSendShareDialog = SendShareDialog.newInstance(file, hideNcSharingOptions, capability);
mSendShareDialog.setFileOperationsHelper(this);
mSendShareDialog.show(ft, "TAG_SEND_SHARE_DIALOG");
}
Aggregations