Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2cb1f87 authored by Federico Baron's avatar Federico Baron Committed by Android (Google) Code Review
Browse files

Merge "Folder preview work badge theming fix" into main

parents 583e48d9 1e360c1a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ import com.android.launcher3.Utilities;
import com.android.launcher3.graphics.PreloadIconDrawable;
import com.android.launcher3.model.data.ItemInfoWithIcon;
import com.android.launcher3.model.data.WorkspaceItemInfo;
import com.android.launcher3.util.Themes;
import com.android.launcher3.views.ActivityContext;

import java.util.ArrayList;
@@ -434,7 +435,8 @@ public class PreviewItemManager {
            drawable.setLevel(item.getProgressLevel());
            p.drawable = drawable;
        } else {
            p.drawable = item.newIcon(mContext, FLAG_THEMED);
            p.drawable = item.newIcon(mContext,
                    Themes.isThemedIconEnabled(mContext) ? FLAG_THEMED : 0);
        }
        p.drawable.setBounds(0, 0, mIconSize, mIconSize);
        p.item = item;