diff --git a/res/drawable-hdpi/folder_public.png b/res/drawable-hdpi/folder_public.png new file mode 100644 index 0000000000..00f71c21b2 Binary files /dev/null and b/res/drawable-hdpi/folder_public.png differ diff --git a/res/drawable-mdpi/folder_public.png b/res/drawable-mdpi/folder_public.png new file mode 100644 index 0000000000..bffdace74e Binary files /dev/null and b/res/drawable-mdpi/folder_public.png differ diff --git a/res/layout/list_item.xml b/res/layout/list_item.xml index 9c47aa6cca..459f4f164d 100644 --- a/res/layout/list_item.xml +++ b/res/layout/list_item.xml @@ -38,8 +38,8 @@ diff --git a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java index 408154acc6..4a30be66e9 100644 --- a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java +++ b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java @@ -119,6 +119,7 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter { sharedWithMeIconV.setVisibility(View.GONE); ImageView localStateView = (ImageView) view.findViewById(R.id.imageView2); + localStateView.bringToFront(); FileDownloaderBinder downloaderBinder = mTransferServiceGetter.getFileDownloaderBinder(); FileUploaderBinder uploaderBinder = mTransferServiceGetter.getFileUploaderBinder(); if (downloaderBinder != null && downloaderBinder.isDownloading(mAccount, file)) { @@ -184,6 +185,12 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter { } else { fileIcon.setImageResource(DisplayUtils.getResourceId(file.getMimetype(), file.getFileName())); } + + // If folder is sharedByLink, icon folder must be changed to + // folder-public one + if (file.isShareByLink()) { + fileIcon.setImageResource(R.drawable.folder_public); + } } if (file.isShareByLink()) {