mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-08 19:16:09 +01:00
+ResTable.listFramePackages()
This commit is contained in:
parent
0ad4f262a6
commit
3d69eb9fd5
@ -35,6 +35,8 @@ public class ResTable {
|
|||||||
new HashMap<String, ResPackage>();
|
new HashMap<String, ResPackage>();
|
||||||
private final Set<ResPackage> mMainPackages =
|
private final Set<ResPackage> mMainPackages =
|
||||||
new LinkedHashSet<ResPackage>();
|
new LinkedHashSet<ResPackage>();
|
||||||
|
private final Set<ResPackage> mFramePackages =
|
||||||
|
new LinkedHashSet<ResPackage>();
|
||||||
|
|
||||||
private String mFrameTag;
|
private String mFrameTag;
|
||||||
|
|
||||||
@ -58,6 +60,10 @@ public class ResTable {
|
|||||||
return mMainPackages;
|
return mMainPackages;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Set<ResPackage> listFramePackages() {
|
||||||
|
return mFramePackages;
|
||||||
|
}
|
||||||
|
|
||||||
public ResPackage getPackage(int id) throws AndrolibException {
|
public ResPackage getPackage(int id) throws AndrolibException {
|
||||||
ResPackage pkg = mPackagesById.get(id);
|
ResPackage pkg = mPackagesById.get(id);
|
||||||
if (pkg != null) {
|
if (pkg != null) {
|
||||||
@ -107,6 +113,8 @@ public class ResTable {
|
|||||||
mPackagesByName.put(name, pkg);
|
mPackagesByName.put(name, pkg);
|
||||||
if (main) {
|
if (main) {
|
||||||
mMainPackages.add(pkg);
|
mMainPackages.add(pkg);
|
||||||
|
} else {
|
||||||
|
mFramePackages.add(pkg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user