Apply color changes for folder

Signed-off-by: Alper Ozturk <alperozturk@lions-macbook.local>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
Alper Ozturk 2023-10-03 14:32:31 +02:00 committed by alperozturk
parent 4b35088377
commit bbea0e00d0
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF

View file

@ -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<OCFile>, 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()) {