diff options
author | d34d <clark@cyngn.com> | 2014-08-14 17:30:43 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyngn.com> | 2014-08-14 17:30:43 +0000 |
commit | 0d513764631265ee33f8331d47ffc17a9931e8fb (patch) | |
tree | 87e77ce038f5ddc11c009a208723d14f8dfae0b0 | |
parent | dbbc3f84069fb6a84b9754bd3a2cab2b0061b60d (diff) | |
parent | b75048cd272775dda4357d218c97c838fdf65f2e (diff) | |
download | packages_apps_ThemeChooser-0d513764631265ee33f8331d47ffc17a9931e8fb.zip packages_apps_ThemeChooser-0d513764631265ee33f8331d47ffc17a9931e8fb.tar.gz packages_apps_ThemeChooser-0d513764631265ee33f8331d47ffc17a9931e8fb.tar.bz2 |
Merge "Use getThemedResourcesForApplication for icons" into cm-11.0
-rw-r--r-- | src/com/cyngn/theme/util/IconPreviewHelper.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/com/cyngn/theme/util/IconPreviewHelper.java b/src/com/cyngn/theme/util/IconPreviewHelper.java index 3c37eb2..4a5725c 100644 --- a/src/com/cyngn/theme/util/IconPreviewHelper.java +++ b/src/com/cyngn/theme/util/IconPreviewHelper.java @@ -140,9 +140,7 @@ public class IconPreviewHelper { ActivityInfo info = pm.getActivityInfo(component, 0); ApplicationInfo appInfo = pm.getApplicationInfo(pkgName, 0); - AssetManager assets = new AssetManager(); - assets.addAssetPath(appInfo.publicSourceDir); - res = new Resources(assets, mDisplayMetrics, mConfiguration); + res = pm.getThemedResourcesForApplication(pkgName, mThemePkgName); final int iconId = info.icon != 0 ? info.icon : appInfo.icon; info.themedIcon = 0; |