summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/cyngn/theme/util/IconPreviewHelper.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/cyngn/theme/util/IconPreviewHelper.java b/src/com/cyngn/theme/util/IconPreviewHelper.java
index 4a5725c..3c37eb2 100644
--- a/src/com/cyngn/theme/util/IconPreviewHelper.java
+++ b/src/com/cyngn/theme/util/IconPreviewHelper.java
@@ -140,7 +140,9 @@ public class IconPreviewHelper {
ActivityInfo info = pm.getActivityInfo(component, 0);
ApplicationInfo appInfo = pm.getApplicationInfo(pkgName, 0);
- res = pm.getThemedResourcesForApplication(pkgName, mThemePkgName);
+ AssetManager assets = new AssetManager();
+ assets.addAssetPath(appInfo.publicSourceDir);
+ res = new Resources(assets, mDisplayMetrics, mConfiguration);
final int iconId = info.icon != 0 ? info.icon : appInfo.icon;
info.themedIcon = 0;