Browse Source

Throttle click on share icon

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 3 years ago
parent
commit
d33d5a20fd

+ 3 - 1
app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java

@@ -556,7 +556,9 @@ public class OCFileListFragment extends ExtendedListFragment implements
         if (file.isFolder()) {
             mContainerActivity.showDetails(file, 1);
         } else {
-            mContainerActivity.getFileOperationsHelper().sendShareFile(file);
+            throttler.run("shareIconClick", () -> {
+                mContainerActivity.getFileOperationsHelper().sendShareFile(file);
+            });
         }
     }