Hide 'shared with me' icon when file does not have 'S' permission
authorjabarros <jabarros@solidgear.es>
Wed, 25 Jun 2014 07:21:28 +0000 (09:21 +0200)
committerDavid A. Velasco <dvelasco@solidgear.es>
Tue, 1 Jul 2014 07:59:31 +0000 (09:59 +0200)
res/layout/list_item.xml
src/com/owncloud/android/ui/adapter/FileListListAdapter.java

index 872ebcf..b71a27c 100644 (file)
         android:layout_marginLeft="4dp"\r
         android:layout_marginRight="4dp"\r
         android:layout_marginBottom="4dp"\r
-        android:src="@drawable/shared_with_me"\r
-        android:visibility="gone" />\r
+        android:src="@drawable/shared_with_me" />\r
 \r
     <ImageView\r
         android:id="@+id/shareIcon"\r
index 2f29c91..bf1ccb1 100644 (file)
@@ -117,6 +117,7 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
             ImageView fileIcon = (ImageView) view.findViewById(R.id.imageView1);\r
             ImageView shareIconV = (ImageView) view.findViewById(R.id.shareIcon);\r
             ImageView shareWithMeIconV = (ImageView) view.findViewById(R.id.shareWithMeIcon);\r
+            shareWithMeIconV.setVisibility(View.GONE);\r
 \r
             if (file.isShareByLink()) {\r
                 shareIconV.setVisibility(View.VISIBLE);\r