summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-03-18 14:07:24 -0700
committerd34d <clark@cyngn.com>2015-03-18 14:07:24 -0700
commita6afd7e22df46a004d78ad2ed9ec3f1ab2c674b3 (patch)
tree95f80077464a049885033ebac7238d1b794f34c9
parent7320de5213287aa159a5a6695eaea47d3be15935 (diff)
downloadandroid_packages_providers_ThemesProvider-a6afd7e22df46a004d78ad2ed9ec3f1ab2c674b3.tar.gz
android_packages_providers_ThemesProvider-a6afd7e22df46a004d78ad2ed9ec3f1ab2c674b3.tar.bz2
android_packages_providers_ThemesProvider-a6afd7e22df46a004d78ad2ed9ec3f1ab2c674b3.zip
Fix icons with filters not being generated
If a theme has composed icons that only use color filters, they would not get generated. This patch resolves that issue. Change-Id: If9076eca8cce1a85beed54ce30f0dfb8bbcd3188 REF: CHOOSER-63
-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;