From: purigarcia Date: Thu, 9 Jul 2015 07:35:28 +0000 (+0200) Subject: Remove code that should not be in this pr X-Git-Tag: oc-android-1.8~54^2~4 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/a09e4735553a85193912885d9f54ac662b583b4e Remove code that should not be in this pr --- diff --git a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java index ab6ebf1f..34028888 100644 --- a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java +++ b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java @@ -233,7 +233,6 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter { case GRID_IMAGE: // sharedIcon ImageView sharedIconV = (ImageView) view.findViewById(R.id.sharedIcon); - //if (file.isShareByLink() && ((mGridMode && !file.isFolder()) || !mGridMode)) { if (file.isShareByLink()) { sharedIconV.setVisibility(View.VISIBLE); sharedIconV.bringToFront(); @@ -241,7 +240,6 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter { sharedIconV.setVisibility(View.GONE); } - // local state ImageView localStateView = (ImageView) view.findViewById(R.id.localFileIndicator); localStateView.bringToFront(); @@ -270,18 +268,18 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter { } // share with me icon - ImageView sharedWithMeIconV = (ImageView) - view.findViewById(R.id.sharedWithMeIcon); - sharedWithMeIconV.bringToFront(); - if (checkIfFileIsSharedWithMe(file) && - ((mGridMode && !file.isFolder()) || !mGridMode)) { - sharedWithMeIconV.setVisibility(View.VISIBLE); - } else { - sharedWithMeIconV.setVisibility(View.GONE); + if (!file.isFolder()) { + ImageView sharedWithMeIconV = (ImageView) + view.findViewById(R.id.sharedWithMeIcon); + sharedWithMeIconV.bringToFront(); + if (checkIfFileIsSharedWithMe(file)) { + sharedWithMeIconV.setVisibility(View.VISIBLE); + } else { + sharedWithMeIconV.setVisibility(View.GONE); + } } - break; }