Search in sources :

Example 1 with SendShareDialog

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");
}
Also used : FragmentManager(android.support.v4.app.FragmentManager) FragmentTransaction(android.support.v4.app.FragmentTransaction) SendShareDialog(com.owncloud.android.ui.dialog.SendShareDialog)

Example 2 with SendShareDialog

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");
}
Also used : FragmentManager(androidx.fragment.app.FragmentManager) FragmentTransaction(androidx.fragment.app.FragmentTransaction) OCCapability(com.owncloud.android.lib.resources.status.OCCapability) SendShareDialog(com.owncloud.android.ui.dialog.SendShareDialog)

Aggregations

SendShareDialog (com.owncloud.android.ui.dialog.SendShareDialog)2 FragmentManager (android.support.v4.app.FragmentManager)1 FragmentTransaction (android.support.v4.app.FragmentTransaction)1 FragmentManager (androidx.fragment.app.FragmentManager)1 FragmentTransaction (androidx.fragment.app.FragmentTransaction)1 OCCapability (com.owncloud.android.lib.resources.status.OCCapability)1