From bbea0e00d021847cf064acfff67f7423dfbb172a Mon Sep 17 00:00:00 2001 From: Alper Ozturk Date: Tue, 3 Oct 2023 14:32:31 +0200 Subject: [PATCH] Apply color changes for folder Signed-off-by: Alper Ozturk Signed-off-by: alperozturk --- app/src/main/java/com/owncloud/android/datamodel/OCFile.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/owncloud/android/datamodel/OCFile.java b/app/src/main/java/com/owncloud/android/datamodel/OCFile.java index 738a994e3d..acc0353b19 100644 --- a/app/src/main/java/com/owncloud/android/datamodel/OCFile.java +++ b/app/src/main/java/com/owncloud/android/datamodel/OCFile.java @@ -32,6 +32,7 @@ import android.os.Parcelable; import android.text.TextUtils; import android.view.Gravity; +import com.nextcloud.android.common.ui.theme.utils.ColorRole; import com.owncloud.android.R; import com.owncloud.android.lib.common.network.WebdavEntry; import com.owncloud.android.lib.common.network.WebdavUtils; @@ -650,6 +651,7 @@ public class OCFile implements Parcelable, Comparable, ServerFileInterfa public LayerDrawable getFileLayerDrawable(boolean isAutoUploadFolder, Context context, ViewThemeUtils viewThemeUtils) { Drawable folderDrawable = ContextCompat.getDrawable(context, R.drawable.folder); + viewThemeUtils.platform.tintDrawable(context, folderDrawable, ColorRole.PRIMARY); int overlayIconId; if (WebdavEntry.MountType.GROUP == mountType || isGroupFolder()) {