summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Scheff <clark@cyngn.com>2014-08-14 11:15:56 -0700
committerClark Scheff <clark@cyngn.com>2014-08-14 11:17:18 -0700
commitcbac0b24090917aa07ed8f08211bb731b378a195 (patch)
tree565ac7771fbe3924e3de8fd848ad4fabb19190c1
parente38ffb5d09523b069a020b3cb9b8c6de69b8d15b (diff)
downloadpackages_apps_ThemeChooser-cbac0b24090917aa07ed8f08211bb731b378a195.zip
packages_apps_ThemeChooser-cbac0b24090917aa07ed8f08211bb731b378a195.tar.gz
packages_apps_ThemeChooser-cbac0b24090917aa07ed8f08211bb731b378a195.tar.bz2
Revert "Use getThemedResourcesForApplication for icons"
This reverts commit b75048cd272775dda4357d218c97c838fdf65f2e. Change-Id: Ie367f856e4ca76e8abf1134136fa23ef46fc54fc
-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;