mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-06 10:05:54 +01:00
+ResTable.listFramePackages()
This commit is contained in:
parent
0ad4f262a6
commit
3d69eb9fd5
@ -35,6 +35,8 @@ public class ResTable {
|
||||
new HashMap<String, ResPackage>();
|
||||
private final Set<ResPackage> mMainPackages =
|
||||
new LinkedHashSet<ResPackage>();
|
||||
private final Set<ResPackage> mFramePackages =
|
||||
new LinkedHashSet<ResPackage>();
|
||||
|
||||
private String mFrameTag;
|
||||
|
||||
@ -58,6 +60,10 @@ public class ResTable {
|
||||
return mMainPackages;
|
||||
}
|
||||
|
||||
public Set<ResPackage> 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user