Browse Source

Hide 'shared with me' icon when file does not have 'S' permission

jabarros 10 years ago
parent
commit
be0990baac

+ 1 - 2
res/layout/list_item.xml

@@ -117,8 +117,7 @@
         android:layout_marginLeft="4dp"
         android:layout_marginRight="4dp"
         android:layout_marginBottom="4dp"
-        android:src="@drawable/shared_with_me"
-        android:visibility="gone" />
+        android:src="@drawable/shared_with_me" />
 
     <ImageView
         android:id="@+id/shareIcon"

+ 1 - 0
src/com/owncloud/android/ui/adapter/FileListListAdapter.java

@@ -117,6 +117,7 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
             ImageView fileIcon = (ImageView) view.findViewById(R.id.imageView1);
             ImageView shareIconV = (ImageView) view.findViewById(R.id.shareIcon);
             ImageView shareWithMeIconV = (ImageView) view.findViewById(R.id.shareWithMeIcon);
+            shareWithMeIconV.setVisibility(View.GONE);
 
             if (file.isShareByLink()) {
                 shareIconV.setVisibility(View.VISIBLE);