From 42946bcc6d99d76abaeb7199ed16291f64e9062d Mon Sep 17 00:00:00 2001 From: jabarros Date: Mon, 7 Jul 2014 10:10:18 +0200 Subject: [PATCH] Show folder icon with world above on the left side of any folder that is publicity shared --- .../owncloud/android/ui/adapter/FileListListAdapter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java index 408154acc6..7071ae5771 100644 --- a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java +++ b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java @@ -184,6 +184,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()) {