Browse Source

Do not show sharing option at all

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

+ 1 - 0
app/src/main/java/com/owncloud/android/ui/adapter/OCFileListDelegate.kt

@@ -129,6 +129,7 @@ class OCFileListDelegate(
         bindGridMetadataViews(file, gridViewHolder)
 
         // shares
+        val shouldHideShare = gridView || hideItemOptions || file.isFolder && !file.canReshare() || file.isEncrypted
         val shouldHideShare = gridView || hideItemOptions || file.isFolder && !file.canReshare() ||
             searchType == SearchType.FAVORITE_SEARCH
         if (shouldHideShare) {