diff options
author | Clark Scheff <clark@cyngn.com> | 2014-08-14 11:15:56 -0700 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2014-08-14 11:17:18 -0700 |
commit | cbac0b24090917aa07ed8f08211bb731b378a195 (patch) | |
tree | 565ac7771fbe3924e3de8fd848ad4fabb19190c1 | |
parent | e38ffb5d09523b069a020b3cb9b8c6de69b8d15b (diff) | |
download | packages_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.java | 4 |
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; |