in gridview in the folder, icons are not shown

This commit is contained in:
purigarcia 2015-07-08 18:14:38 +02:00
parent 0e95ee3e67
commit 451513a35d

View file

@ -233,13 +233,14 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
case GRID_IMAGE:
// sharedIcon
ImageView sharedIconV = (ImageView) view.findViewById(R.id.sharedIcon);
if (file.isShareByLink()) {
if (file.isShareByLink() && ((mGridMode && !file.isFolder()) || !mGridMode)) {
sharedIconV.setVisibility(View.VISIBLE);
sharedIconV.bringToFront();
} else {
sharedIconV.setVisibility(View.GONE);
}
// local state
ImageView localStateView = (ImageView) view.findViewById(R.id.localFileIndicator);
localStateView.bringToFront();
@ -271,13 +272,15 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
ImageView sharedWithMeIconV = (ImageView)
view.findViewById(R.id.sharedWithMeIcon);
sharedWithMeIconV.bringToFront();
if (checkIfFileIsSharedWithMe(file)) {
if (checkIfFileIsSharedWithMe(file) &&
((mGridMode && !file.isFolder()) || !mGridMode)) {
sharedWithMeIconV.setVisibility(View.VISIBLE);
} else {
sharedWithMeIconV.setVisibility(View.GONE);
}
break;
}