mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
in gridview in the folder, icons are not shown
This commit is contained in:
parent
0e95ee3e67
commit
451513a35d
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue