Throttle click on share icon

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2022-05-06 09:11:10 +02:00
parent 73a18fbf6e
commit d33d5a20fd
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

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