|
@@ -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;
|
|
|
}
|
|
|
|