Merge pull request #11006 from nextcloud/fix/groupfolder-icon-priority

Give groupfolders priority when choosing icon for folder
This commit is contained in:
Álvaro Brey 2022-11-08 13:55:27 +01:00 committed by GitHub
commit cedd8962d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,7 +142,9 @@ public final class MimeTypeUtil {
ViewThemeUtils viewThemeUtils) {
int drawableId;
if (isSharedViaLink) {
if (WebdavEntry.MountType.GROUP == mountType || isGroupFolder) {
drawableId = R.drawable.folder_group;
} else if (isSharedViaLink) {
drawableId = R.drawable.folder_shared_link;
} else if (isSharedViaUsers) {
drawableId = R.drawable.folder_shared_users;
@ -150,8 +152,6 @@ public final class MimeTypeUtil {
drawableId = R.drawable.folder_encrypted;
} else if (WebdavEntry.MountType.EXTERNAL == mountType) {
drawableId = R.drawable.folder_external;
} else if (WebdavEntry.MountType.GROUP == mountType || isGroupFolder) {
drawableId = R.drawable.folder_group;
} else {
drawableId = R.drawable.folder;
}