mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 08:58:30 +03:00
Give groupfolders priority when choosing icon for folder
In the server UI, a groupfolder that also has a link shows as a groupfolder. In the app, it shows as a link. This fixes that. Signed-off-by: Álvaro Brey <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
ae802cd27d
commit
fe3a6e6790
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