Skip to content

Commit

Permalink
Tinting removed for folder and file icons.
Browse files Browse the repository at this point in the history
Share icon changed.
  • Loading branch information
surinder-tsys committed Aug 28, 2023
1 parent 6fa52c6 commit b9175c0
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions app/src/main/java/com/owncloud/android/utils/MimeTypeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,8 @@ public static Drawable getFileTypeIcon(String mimetype,
ViewThemeUtils viewThemeUtils) {
if (context != null) {
int iconId = MimeTypeUtil.getFileTypeIconId(mimetype, filename);
Drawable icon = ContextCompat.getDrawable(context, iconId);

if (R.drawable.file_zip == iconId) {
viewThemeUtils.platform.tintPrimaryDrawable(context, icon);
}

return icon;
//NMC Customization
return ContextCompat.getDrawable(context, iconId);
} else {
return null;
}
Expand Down Expand Up @@ -154,7 +149,7 @@ public static Drawable getFolderTypeIcon(boolean isSharedViaUsers,
if (WebdavEntry.MountType.GROUP == mountType || isGroupFolder) {
drawableId = R.drawable.folder_group;
} else if (isSharedViaLink && !isEncrypted) {
drawableId = R.drawable.folder_shared_link;
drawableId = R.drawable.folder_shared_users;
} else if (isSharedViaUsers) {
drawableId = R.drawable.folder_shared_users;
} else if (isEncrypted) {
Expand All @@ -167,9 +162,7 @@ public static Drawable getFolderTypeIcon(boolean isSharedViaUsers,
drawableId = R.drawable.folder;
}

Drawable drawable = ContextCompat.getDrawable(context, drawableId);
viewThemeUtils.platform.tintPrimaryDrawable(context, drawable);
return drawable;
return ContextCompat.getDrawable(context, drawableId);
}

public static Drawable getDefaultFolderIcon(Context context,
Expand Down

0 comments on commit b9175c0

Please sign in to comment.