From bcb2d6b282bead85265a5e15ea7791b2f0549f06 Mon Sep 17 00:00:00 2001 From: A117870935 Date: Thu, 27 Apr 2023 15:56:57 +0530 Subject: [PATCH] Fix showing share send dialog multiple times by rapidly clicking share icon. --- .../com/owncloud/android/ui/helpers/FileOperationsHelper.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java b/app/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java index b9e05e1014..37ec3d1c5c 100755 --- a/app/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java +++ b/app/src/main/java/com/owncloud/android/ui/helpers/FileOperationsHelper.java @@ -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 files) {