mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
Merge pull request #11006 from nextcloud/fix/groupfolder-icon-priority
Give groupfolders priority when choosing icon for folder
This commit is contained in:
commit
cedd8962d0
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue