Fix showing share send dialog multiple times by rapidly clicking share icon.

This commit is contained in:
A117870935 2023-04-27 15:56:57 +05:30
parent 5196be48f0
commit bcb2d6b282

View file

@ -800,7 +800,9 @@ public class FileOperationsHelper {
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");
if (fm.findFragmentByTag("TAG_SEND_SHARE_DIALOG") == null) {
mSendShareDialog.show(ft, "TAG_SEND_SHARE_DIALOG");
}
}
public void sendFiles(Set<OCFile> files) {