Skip to content

Commit

Permalink
enh: fix themed preview folder for home-only
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSluffy committed Jan 15, 2025
1 parent 2c0b471 commit 65954e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/com/android/launcher3/folder/PreviewItemManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
import java.util.List;
import java.util.function.Predicate;

import app.lawnchair.preferences.PreferenceManager;

/**
* Manages the drawing and animations of {@link PreviewItemDrawingParams} for a
* {@link FolderIcon}.
Expand Down Expand Up @@ -466,8 +468,8 @@ public void setDrawable(PreviewItemDrawingParams p, ItemInfo item) {
p.drawable = AppPairIconGraphic.composeDrawable(api, appPairParams);
p.drawable.setBounds(0, 0, mIconSize, mIconSize);
} else if (item instanceof ItemInfoWithIcon withIcon){
p.drawable = withIcon.newIcon(mContext,
Themes.isThemedIconEnabled(mContext) ? FLAG_THEMED : 0);
var isThemed = PreferenceManager.getInstance(mContext).getDrawerThemedIcons().get();
p.drawable = withIcon.newIcon(mContext, isThemed);
p.drawable.setBounds(0, 0, mIconSize, mIconSize);
}

Expand Down

0 comments on commit 65954e0

Please sign in to comment.