瀏覽代碼

Do not show sharing option at all

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

+ 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) {