summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/util/IconPreviewHelper.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/cyanogenmod/themes/provider/util/IconPreviewHelper.java b/src/org/cyanogenmod/themes/provider/util/IconPreviewHelper.java
index 484136c..03aef59 100644
--- a/src/org/cyanogenmod/themes/provider/util/IconPreviewHelper.java
+++ b/src/org/cyanogenmod/themes/provider/util/IconPreviewHelper.java
@@ -156,8 +156,7 @@ public class IconPreviewHelper {
private Drawable getComposedIcon(Resources res, Drawable baseIcon) {
ComposedIconInfo iconInfo = mIconPackHelper.getComposedIconInfo();
- if (res != null && iconInfo != null && (iconInfo.iconBacks != null ||
- iconInfo.iconMask != 0 || iconInfo.iconUpon != 0)) {
+ if (res != null && IconPackHelper.shouldComposeIcon(iconInfo)) {
return IconPackHelper.IconCustomizer.getComposedIconDrawable(baseIcon, res, iconInfo);
}
return baseIcon;