소스 검색

Do not show sharing option at all

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 3 년 전
부모
커밋
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) {