modify for the review

This commit is contained in:
purigarcia 2015-07-20 12:18:44 +02:00
parent 59a9bc8004
commit 5cc79b0919

View file

@ -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();
@ -274,7 +273,7 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
view.findViewById(R.id.sharedWithMeIcon);
sharedWithMeIconV.bringToFront();
if (checkIfFileIsSharedWithMe(file) &&
((mGridMode && !file.isFolder()) || !mGridMode)) {
(!file.isFolder() || !mGridMode)) {
sharedWithMeIconV.setVisibility(View.VISIBLE);
} else {
sharedWithMeIconV.setVisibility(View.GONE);