瀏覽代碼

Throttle click on share icon

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 3 年之前
父節點
當前提交
d33d5a20fd
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/src/main/java/com/owncloud/android/ui/fragment/OCFileListFragment.java

+ 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);
+            });
         }
     }