From 3d69eb9fd55ed2103fe6779240e66facd01c6c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Wed, 2 Jun 2010 10:12:00 +0200 Subject: [PATCH] +ResTable.listFramePackages() --- src/brut/androlib/res/data/ResTable.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/brut/androlib/res/data/ResTable.java b/src/brut/androlib/res/data/ResTable.java index 98b81866..698483e2 100644 --- a/src/brut/androlib/res/data/ResTable.java +++ b/src/brut/androlib/res/data/ResTable.java @@ -35,6 +35,8 @@ public class ResTable { new HashMap(); private final Set mMainPackages = new LinkedHashSet(); + private final Set mFramePackages = + new LinkedHashSet(); private String mFrameTag; @@ -58,6 +60,10 @@ public class ResTable { return mMainPackages; } + public Set listFramePackages() { + return mFramePackages; + } + public ResPackage getPackage(int id) throws AndrolibException { ResPackage pkg = mPackagesById.get(id); if (pkg != null) { @@ -107,6 +113,8 @@ public class ResTable { mPackagesByName.put(name, pkg); if (main) { mMainPackages.add(pkg); + } else { + mFramePackages.add(pkg); } }